Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

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


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 12:00 PM.


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