Changeset 10075 for code/branches/ScriptableController/data/gui/scripts
- Timestamp:
- May 22, 2014, 3:39:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/data/gui/scripts/testscript.lua
r10066 r10075 7 7 yl = 3000 8 8 zl = -1000 9 10 xr = 2000 11 yr = 500 12 zr = 2000 9 13 10 14 d = 5 … … 32 36 end 33 37 38 34 39 -- Update absolute time 35 40 Tabs = math.pi + 0.9 41 42 36 43 37 44 -- Move away again, still looking at the station 38 45 ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3, Tabs+0.4) 39 46 47 48 40 49 -- Update absolute time 41 50 Tabs = Tabs + 0.4 + 3 42 51 52 53 54 55 43 56 -- 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) 57 ctrl:eventScheduler("chl", xl, yl, zl, xr, yr, zr, 2, Tabs+0.2) 58 59 Tabs = Tabs + 2 + 0.2 60 61 ctrl:eventScheduler("mal", xr + 600,yr,zr, xr,yr,zr, 4, Tabs+0) 62 63 Tabs = Tabs + 4 64 65 for t = 0,math.pi,dt do 66 xt = math.cos(t) 67 zt = math.sin(t) 68 69 ctrl:eventScheduler("mal", xr+600*xt, yr, zr+600*zt, xr, yr, zr, dt, Tabs+t) 70 end 71 72 Tabs = Tabs + math.pi 73 74 ctrl:eventScheduler("chl", xr, yr, zr, xl, yl, zl, 3, Tabs+0.2) 75 76 Tabs = Tabs + 3 + 0.2 77 78 ctrl:eventScheduler("mal", xm,ym,zm, xl,yl,zl, 4, Tabs+2.5) 79 45 80 46 81 end
Note: See TracChangeset
for help on using the changeset viewer.