Activate
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 9: | Line 9: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Object]] |
Revision as of 18:24, 4 February 2014
Activates an object wich was already in the 3d scene but deactivated.
object = getObject("object") deactivate(object) function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") then deactivate(object) end end