Deactivate
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
Line 2: | Line 2: | ||
Deactivate an object. | Deactivate an object. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
object = getObject("object") | object = getObject("object") |
Latest revision as of 00:15, 9 February 2014
deactivate(object)
Deactivate an object.
-
object
: object to operate on
object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") then deactivate(object) end end