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
Line 
1--k = 1.2
2
3--orxonox.execute("orxout message test " .. k)
4
5x = 1.1
6y = 2.2
7z = 3.3
8
9
10local ctrl = orxonox.ScriptController:getScriptController()
11--orxonox.ScriptController:moveToPosition(x, y, z)
12--ctrl.moveToPosition(x,y,z)
13
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
23
24--orxonox.execute("setPause 1")
25
26
Note: See TracBrowser for help on using the repository browser.