IsActive
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{lua-function|isActive|object}} | {{lua-function|isActive|object}} | ||
− | Returns the object's active state | + | Returns boolean value of the object's active state. |
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
active = isActive(object) | active = isActive(object) |
Latest revision as of 00:15, 9 February 2014
isActive(object)
Returns boolean value of the object's active state.
-
object
: object to operate on
active = isActive(object)
Example:
if isActive(object) then print("object is active") end