Deactivate
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
| Line 8: | Line 8: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Object]] | ||
Revision as of 18:25, 4 February 2014
Deactivate an object.
object = getObject("object")
function onSceneUpdate()
if isKeyPressed("UP") then activate(object) end
if isKeyPressed("DOWN") then deactivate(object) end
end