Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.