IsActive
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | Returns the object's active state | + | {{lua-function|isActive|object}} |
| + | |||
| + | Returns boolean value of the object's active state. | ||
| + | |||
| + | {{lua-function-param|object|object to operate on}} | ||
active = isActive(object) | active = isActive(object) | ||
| − | Example : | + | '''Example:''' |
if isActive(object) then | if isActive(object) then | ||
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