Activate
(Difference between revisions)
(Created page with "Activates an object wich was already in the 3d scene but deactivated. object = getObject("object") deactivate(object) function onSceneUpdate() if isKeyPr...") |
Dahnielson (Talk | contribs) |
||
| Line 7: | Line 7: | ||
if isKeyPressed("DOWN") then deactivate(object) end | if isKeyPressed("DOWN") then deactivate(object) end | ||
end | end | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
Revision as of 17:58, 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