Activate
From MaratisWiki
(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) m |
||
(3 intermediate revisions by one user not shown) | |||
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. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
object = getObject("object") | object = getObject("object") | ||
Line 7: | Line 11: | ||
if isKeyPressed("DOWN") then deactivate(object) end | if isKeyPressed("DOWN") then deactivate(object) end | ||
end | end | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Object]] |
Latest revision as of 00:15, 9 February 2014
activate(object)
Activates an object wich was already in the 3d scene but deactivated.
-
object
: object to operate on
object = getObject("object") deactivate(object) function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") then deactivate(object) end end