Creation/Dev/Script/Client/TStaticVar: Difference between revisions
From Graal Bible
m (Example script, description added.) |
|||
Line 1: | Line 1: | ||
Inherits [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]. | Inherits [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]. | ||
Can be used to pass an object through a function (see example script) which would otherwise be ruined if using a [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]. | |||
=Functions= | =Functions= | ||
Line 11: | Line 13: | ||
| Destroy the object | | Destroy the object | ||
|} | |} | ||
=Example Script= | |||
function getItem() | |||
{ | |||
temp.item = new TStaticVar(); | |||
item.value = 321; | |||
return item; | |||
} |
Revision as of 03:11, 9 June 2008
Inherits TGraalVar.
Can be used to pass an object through a function (see example script) which would otherwise be ruined if using a TGraalVar.
Functions
Name | Return Type | Description |
destroy() | Destroy the object |
Example Script
function getItem() { temp.item = new TStaticVar(); item.value = 321; return item; }