Changeset 10047 for code/branches/ScriptableController/data/gui/scripts
- Timestamp:
- May 8, 2014, 10:16:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/data/gui/scripts/testscript.lua
r10046 r10047 3 3 --orxonox.execute("orxout message test " .. k) 4 4 5 -- Set some test variables 5 6 x = 1.1 6 7 y = 2.2 7 8 z = 3.3 8 9 10 --os.execute("sleep " .. 2) 9 11 12 -- Get a local pointer to a scriptcontroller 10 13 local ctrl = orxonox.ScriptController:getScriptController() 14 15 -- If it worked, call its "movetoposition" function 11 16 if ctrl ~= nil then 12 17 ctrl:moveToPosition_beta(x, y, z) 13 18 end 14 19 15 --ctrl.moveToPosition(x,y,z) 16 -- 20 -- Output the newctrlid variable we set from the C++ code 17 21 if newctrlid ~= nil then 18 22 orxonox.execute("orxout message test " .. newctrlid) 19 end20 21 local docks = orxonox.Dock:getNumberOfActiveDocks()22 local docklist = {}23 for i = 0, docks-1 do24 table.insert(docklist, orxonox.Dock:getActiveDockAtIndex(i))25 end26 local dock = docklist[1]27 if dock ~= nil then28 dock:dock()29 23 end 30 24
Note: See TracChangeset
for help on using the changeset viewer.