View Single Post
  #1  
Old 12-08-2006, 08:47 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
global variables?

PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  
player.global.var = 3;
  
player.globalr.var = 4;
  } 
to comply with:

PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  for ( 
plallplayers )
    {
    
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!
Reply With Quote