Lua Scream: Difference between revisions
From Spring
Jump to navigationJump to search
mNo edit summary |
|||
| Line 2: | Line 2: | ||
'''Script.CreateScream''' | '''Script.CreateScream''' | ||
( ) -> nil | ( ) -> nil | ||
<font color="darkgreen">This creates an userdata object, | <font color="darkgreen">This creates an userdata object, | ||
you can attach any variable to it (use it as a table). | you can attach any variable to it (use it as a table). | ||
Revision as of 01:05, 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).