PHP Code:
//#CLIENTSIDE
function onCreated()
{
player.global.var = 3;
player.globalr.var = 4;
}
to comply with:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
for ( pl: allplayers )
{
temp.sum += pl.global.var;
pl.global.var ++;
temp.sum2 += pl.globalr.var;
}
}
Basically... A variable that can be edited clientside that is sent to all other players. global.var can be edited by any player, whereas globalr.var only by the player themselves. This would be sent through udp for optimization...
That's my suggestion!