Lua Scream

From Spring
Jump to navigationJump to search

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).