Changeset 10075
- Timestamp:
- May 22, 2014, 3:39:37 PM (11 years ago)
- Location:
- code/branches/ScriptableController/data
- Files:
-
- 2 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 -
code/branches/ScriptableController/data/levels/levelTry.oxw
r10065 r10075 74 74 75 75 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" 78 78 beaconMode="exclude" targetname="bcnDestroyer" name="takeControl" 79 79 /> 80 80 81 <StaticEntity position = " 0,0,0" mass=10000 collisionType=static >81 <StaticEntity position = "2000,500,2000" mass=10000 collisionType=static > 82 82 <attached> 83 83 <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=10 /> … … 90 90 </attached> 91 91 </StaticEntity> 92 93 94 92 95 93 96 <!-- ControllerDirector waits for the event takeControl to attach a new Controller -->
Note: See TracChangeset
for help on using the changeset viewer.