User Tools

Site Tools


modding:function:sysgetdata

Discuss this page on this pages TalkPage

sysGetData

See sysGetData at Xelerus

Syntax (sysGetData [nodeID] attrib) → data
Arguments [nodeID]: The optional name of the system node. If not given it uses the current system.
attrib: The attribute you want to retrieve the data of.
Returns data: Whatever is stored in the attribute in the given node or Nil if no system node exists by that name or the attribute has no data.
Category data, system
Description Returns the named data for the given system.

Example

(sysGetData "power")

Returns the currents systems data named by power. If there is no data (like in a unmodded game) by that name returns Nil. Return to Functions list

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