IsActive

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Returns the object's active state (boolean) : active = isActive(object) Example : if isActive(object) then print("object is active") end")
 
m
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
Returns the object's active state (boolean) :
+
{{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
 
     print("object is active")
 
     print("object is active")
 
  end
 
  end
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Object]]

Latest revision as of 01: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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox