Activate
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
| Line 1: | Line 1: | ||
| + | {{lua-function|activate|object}} | ||
| + | |||
Activates an object wich was already in the 3d scene but deactivated. | Activates an object wich was already in the 3d scene but deactivated. | ||
Revision as of 17:29, 8 February 2014
activate(object)
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