Creation/Dev/Script/Client/TStaticVar: Difference between revisions

From Graal Bible
No edit summary
 
No edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<pre>
[[Category:Scripting Reference]]
   TStaticVar (TGraalVar):
Inherits [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]].
     destroy()
 
</pre>
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=
{| border="1" cellpadding="2" width="100%"
| '''Name'''
| '''Return Type'''
| '''Description'''
|-
| destroy()
|
| Destroy the object
|}
 
 
=Example Script=
   function getItem()
  {
     temp.item = new TStaticVar();
    item.value = 321;
    return item;
  }

Latest revision as of 10:31, 16 February 2010

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;
 }