User Tools

Site Tools


modding:function:objsetdata

Discuss this page on this pages TalkPage

objSetData

See objSetData at Xelerus

Syntax (objSetData spaceObject string expression)
Arguments 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. Return to Functions list

modding/function/objsetdata.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1