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 | |
---|
5 | x = 1.1 |
---|
6 | y = 2.2 |
---|
7 | z = 3.3 |
---|
8 | |
---|
9 | |
---|
10 | local ctrl = orxonox.ScriptController:getScriptController() |
---|
11 | --orxonox.ScriptController:moveToPosition(x, y, z) |
---|
12 | --ctrl.moveToPosition(x,y,z) |
---|
13 | |
---|
14 | local docks = orxonox.Dock:getNumberOfActiveDocks() |
---|
15 | local docklist = {} |
---|
16 | for i = 0, docks-1 do |
---|
17 | table.insert(docklist, orxonox.Dock:getActiveDockAtIndex(i)) |
---|
18 | end |
---|
19 | local dock = docklist[1] |
---|
20 | if dock ~= nil then |
---|
21 | dock:dock() |
---|
22 | end |
---|
23 | |
---|
24 | --orxonox.execute("setPause 1") |
---|
25 | |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.