Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2014, 3:39:37 PM (11 years ago)
Author:
mkronig
Message:

commit for merging files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController/data/gui/scripts/testscript.lua

    r10066 r10075  
    77yl = 3000
    88zl = -1000
     9
     10xr = 2000
     11yr = 500
     12zr = 2000
    913
    1014d = 5
     
    3236  end
    3337
     38
    3439  -- Update absolute time
    3540  Tabs = math.pi + 0.9
     41
     42 
    3643
    3744  -- Move away again, still looking at the station
    3845  ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3, Tabs+0.4)
    3946
     47
     48
    4049  -- Update absolute time
    4150  Tabs = Tabs + 0.4 + 3
    4251
     52 
     53
     54 
     55
    4356  -- 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
    4580
    4681end
Note: See TracChangeset for help on using the changeset viewer.