Changeset 11207 for code/branches/presentationFS16/data/gui/scripts
- Timestamp:
- May 26, 2016, 4:38:51 PM (9 years ago)
- Location:
- code/branches/presentationFS16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS16
- Property svn:mergeinfo changed
/code/branches/plehmannFS16 (added) merged: 11137,11141,11152,11165,11167,11172,11178-11179,11183,11187,11190,11204
- Property svn:mergeinfo changed
-
code/branches/presentationFS16/data/gui/scripts/testscript.lua
r10622 r11207 18 18 19 19 -- Get a local pointer to a scriptcontroller 20 local ctrl = orxonox. ScriptController:getScriptController()20 local ctrl = orxonox.NewScriptController:getNewScriptController() 21 21 22 22 -- If it worked, call its "movetoposition" function 23 23 if ctrl ~= nil then 24 24 25 ctrl:eventScheduler("mal", xl,yl,zl, xl,yl,zl, 2) 26 ctrl:eventScheduler("idle", 1) 27 ctrl:eventScheduler("ral", xl, yl, zl, 3, 3000, 0, math.pi) 28 ctrl:eventScheduler("idle", 1) 29 ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3) 30 ctrl:eventScheduler("idle", 1) 31 ctrl:eventScheduler("chl", xl, yl, zl, xr, yr, zr, 2) 32 ctrl:eventScheduler("idle", 1) 33 ctrl:eventScheduler("mal", xr + 600,yr,zr, xr,yr,zr, 4) 34 ctrl:eventScheduler("idle", 1) 35 ctrl:eventScheduler("chl", xr, yr, zr, xl, yl, zl, 3) 36 ctrl:eventScheduler("idle", 1) 37 ctrl:eventScheduler("spi", xm,ym,zm, 0,0,0, 4) 38 ctrl:eventScheduler("idle", 1) 25 ctrl:moveTo(1, 0, 0, 100, 200) 26 ctrl:moveTo(20, 0, 0, 100, 200) 27 ctrl:moveTo(40, 0, 100, 0, 200) 28 --ctrl:eventScheduler("mal", xl,yl,zl, xl,yl,zl, 10) 29 -- ctrl:eventScheduler("ral", xl, yl, zl, 3, 3000, 0, math.pi) 30 -- ctrl:eventScheduler("idle", 1) 31 -- ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3) 32 -- ctrl:eventScheduler("idle", 1) 33 -- ctrl:eventScheduler("chl", xl, yl, zl, xr, yr, zr, 2) 34 -- ctrl:eventScheduler("idle", 1) 35 -- ctrl:eventScheduler("mal", xr + 600,yr,zr, xr,yr,zr, 4) 36 -- ctrl:eventScheduler("idle", 1) 37 -- ctrl:eventScheduler("chl", xr, yr, zr, xl, yl, zl, 3) 38 -- ctrl:eventScheduler("idle", 1) 39 -- ctrl:eventScheduler("spi", xm,ym,zm, 0,0,0, 4) 40 -- ctrl:eventScheduler("idle", 1) 39 41 40 42 end
Note: See TracChangeset
for help on using the changeset viewer.