Changeset 10066 for code/branches/ScriptableController/data
- Timestamp:
- May 21, 2014, 3:28:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/data/gui/scripts/testscript.lua
r10065 r10066 20 20 -- Move to the starting point at (xl+3000,yl,zl) while looking 21 21 -- at xl,yl,zl over the time span of 3 seconds 22 ctrl:eventScheduler("mal", xl+3000,yl,zl, xl,yl,zl, 3, 0)22 ctrl:eventScheduler("mal", xl+3000,yl,zl, xl,yl,zl, 1, 0) 23 23 24 24 -- From there, perform a rotation around the harvester placed there … … 29 29 yt = math.sin(t) 30 30 31 ctrl:eventScheduler("mal", xl+3000*xt, yl+3000*yt, zl, xl, yl, zl, 3*dt, 3*t+2.9)31 ctrl:eventScheduler("mal", xl+3000*xt, yl+3000*yt, zl, xl, yl, zl, dt, t+0.9) 32 32 end 33 33 34 34 -- Update absolute time 35 Tabs = 3*math.pi + 2.935 Tabs = math.pi + 0.9 36 36 37 37 -- Move away again, still looking at the station 38 38 ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3, Tabs+0.4) 39 39 40 -- Update absolute time 41 Tabs = Tabs + 0.4 + 3 42 43 -- Transition the look from (xl,yl,zl) to (3500,0,0) in 3 seconds 44 ctrl:eventScheduler("chl", xl, yl, zl, 3500, 0, 0, 3, Tabs) 40 45 41 46 end
Note: See TracChangeset
for help on using the changeset viewer.