View Single Post
  #1  
Old 12-23-2007, 12:06 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Sheep's little Guide on using GS2 in non-standard ways

well atleast i have never seen anynone using it like this

adding functions to a TStaticVar without using a class

so that was the basis of all the other stuff ;D
PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  
this.test = new TStaticVar();
  
this.test.bah = function()
    {
    
player.chat "foobar";
    };
  
this.test.bah();
  } 

Last edited by projectigi; 12-23-2007 at 12:55 PM..
Reply With Quote