Deactivate
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
| Line 1: | Line 1: | ||
| + | {{lua-function|deactivate|object}} | ||
| + | |||
Deactivate an object. | Deactivate an object. | ||
Revision as of 17:29, 8 February 2014
deactivate(object)
Deactivate an object.
object = getObject("object")
function onSceneUpdate()
if isKeyPressed("UP") then activate(object) end
if isKeyPressed("DOWN") then deactivate(object) end
end