modding:function:objgetdata
Discuss this page on this page's Talk Page
objGetData
Syntax | (objGetData spaceObject string) |
---|---|
Arguments | spaceObject: The space object you want the data from. |
string: The name of the data you want. | |
Returns | The data named by the string from the space object. Returns Nil if there is no data as named by the string. |
Category | data, spaceObject |
Description | Returns the data named by the string for the space object. |
Very useful in getting information stored on an space object from code. If you want data from the xml look at the function objGetStaticData.
Example
(objGetData gPlayerShip "rins")
Returns the rins from the players ship. This is how the game handles rins.
Return to Functions list
modding/function/objgetdata.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1