User Tools

Site Tools


modding:function:objhasattribute

Discuss this page on this pages TalkPage

objHasAttribute

See objHasAttribute at Xelerus

Syntax (objHasAttribute spaceObject string)
Arguments spaceObject: The space object you want to see if it has the attribute.
string: The attribute's that you want name.
Returns condition: True if the space object has that attribute. Nil otherwise.
Category condition query, spaceobject
Description Checks to see if the space object has the attribute named by the string.

Example

(objHasAttribute gSource "pirates")

Checks to see if the space object has the attribute pirates. Return to Functions list

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