modding:function:objgetdatafield
Discuss this page on this pages TalkPage
objGetDataField
| Syntax | (objGetDataField obj field) |
|---|---|
| Arguments | obj: The object the data field is on |
| field: The data field to retrieve | |
| Returns | Data |
| Category | spaceObject functions |
| Description | Retrieves data from a space object. Functionally the same as typGetDataField, but saves you from getting the object's UNID first. |
Example
(objGetDataField gPlayership 'maxSpeed)
Returns the maximum speed of the playership as a percent of lightspeed.
Return to Space Object functions list
Return to functions list
modding/function/objgetdatafield.txt · Last modified: by xephyr
