Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ScriptableController/data/gui/scripts/testscript.lua @ 10045

Last change on this file since 10045 was 10045, checked in by smerkli, 11 years ago

Fixed the lua stuff, can now call ScriptController functions from lua.

File size: 487 bytes
RevLine 
[10037]1--k = 1.2
[10035]2
[10037]3--orxonox.execute("orxout message test " .. k)
[10035]4
[10037]5x = 1.1
6y = 2.2
7z = 3.3
[10035]8
[10037]9
[10045]10local ctrl = orxonox.ScriptController:getScriptController()
11--orxonox.ScriptController:moveToPosition(x, y, z)
12--ctrl.moveToPosition(x,y,z)
[10037]13
[10045]14local docks = orxonox.Dock:getNumberOfActiveDocks()
15local docklist = {}
16for i = 0, docks-1 do
17  table.insert(docklist, orxonox.Dock:getActiveDockAtIndex(i))
18end
19local dock = docklist[1]
20if dock ~= nil then
21    dock:dock()
22end
[10037]23
[10045]24--orxonox.execute("setPause 1")
[10037]25
[10045]26
Note: See TracBrowser for help on using the repository browser.