Functions Documentation
View Function Edit Function
Name objSetData
Syntax (objSetData spaceObject string expression)
Argument List spaceObject: The space object you want to set data in.
string: The name of the data.
expression: Can be anything except a pointer or a list containing pointers.
Returns condition: True if successful.
Category data, spaceobject
Description Sets the data named by the string to whatever the expression is in the space object.
Example
(objSetData gPlayerShip "rins" 0)

Sets the rins of the player to 0.
Comment Very helpful function in storing data on a space object. Be careful on not storing any objects or pointers or lists containing them.