Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10075


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

commit for merging files

Location:
code/branches/ScriptableController/data
Files:
2 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
  • code/branches/ScriptableController/data/levels/levelTry.oxw

    r10065 r10075  
    7474
    7575
    76     <Billboard position="3500,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=10 />
    77     <DistanceTrigger position="3500,0,0" distance="200" target="Pawn"
     76    <Billboard position="2500,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=10 />
     77    <DistanceTrigger position="2500,0,0" distance="200" target="Pawn"
    7878      beaconMode="exclude" targetname="bcnDestroyer" name="takeControl"
    7979    />
    8080
    81     <StaticEntity position  = "0,0,0" mass=10000 collisionType=static >
     81    <StaticEntity position  = "2000,500,2000" mass=10000 collisionType=static >
    8282      <attached>
    8383        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=10 />
     
    9090      </attached>
    9191    </StaticEntity>
     92
     93
     94
    9295
    9396<!-- ControllerDirector waits for the event takeControl to attach a new Controller -->
Note: See TracChangeset for help on using the changeset viewer.