Quote:
Originally Posted by Novo
An easy way to fix this is having an event each time a variable changes... Such as:
PHP Code:
function variableChanged( varName, oldValue, newValue ) { triggerclient(stuff_here, "updateVar", this.name, varName, newValue ); }
Then having the clientside find the TStaticVar name:
(@ this.name ).(@ varName ) = newValue;
The this.name should be matching on both clientside and serverside for this to work, however... But it would be one method to do it.
|
That was my first thought, I even suggested a hard-coded onVarChange() event for this, however I'm sure having this feature integrated into Graal would make it much more efficient as Graal is already synchronizing serverr. and client. variables.