Lua Scream: Difference between revisions

From Spring
Jump to navigationJump to search
JK (talk | contribs)
New page: == Scream UserData Object == '''Script.CreateScream''' ( ) -> nil <font color="darkgreen">This creates an userdata object, you can attach any variable to it (use it as a table). The di...
 
JK (talk | contribs)
mNo edit summary
Line 2: Line 2:
'''Script.CreateScream'''
'''Script.CreateScream'''
   ( ) -> nil
   ( ) -> nil
   <font color="darkgreen">This creates an userdata object, you can attach any variable to it (use it as a table). The difference from a normal table is that the object calls the Scream() function of the object (if it exists) when the object gets destroyed (->garbage collector).</font>
   <font color="darkgreen">This creates an userdata object,
  you can attach any variable to it (use it as a table).
  The difference from a normal table is that the object
  calls the Scream() function of the object (if it exists)
  when the object gets destroyed (->garbage collector).</font>

Revision as of 01:04, 17 February 2008

Scream UserData Object

Script.CreateScream

 ( ) -> nil
 This creates an userdata object,
 you can attach any variable to it (use it as a table).
 The difference from a normal table is that the object
 calls the Scream() function of the object (if it exists)
 when the object gets destroyed (->garbage collector).