Changeset 4570 for data/trunk/scripts/cutscene/cutscene.lua
- Timestamp:
- Jan 28, 2007, 10:45:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/cutscene/cutscene.lua
r4569 r4570 19 19 triggerTwo:setScript("cutscene.lua") 20 20 triggerTwo:setFunction("switchCamToSpaceship") 21 triggerTwo:setAbsCoor(0, 0 , 1 25)21 triggerTwo:setAbsCoor(0, 0 , 150) 22 22 triggerTwo:setTarget("CameraOne") 23 23 triggerTwo:setRadius(5) … … 42 42 -- Global Variables 43 43 time = 0 44 stationReached = false 45 fadeout = false 44 46 bInit = 0 45 47 bInit2 = 0 … … 76 78 function switchCamToStation(timestep) 77 79 cameraManager:atachCurrCameraToWorldEntity("Building", "zhara") 78 80 stationReached = true 81 time = 0 79 82 --cameraManager:detachCurrCamera() 80 83 return true … … 87 90 time = time + timestep 88 91 92 shutle:tick(timestep) 93 89 94 if bInit == 0 then 90 95 cameraManager:initFadeBlack() 96 gameWorld:showText("Earth Solar System"); 91 97 bInit = 1 92 98 end 93 99 94 if time > 1and bInit2 == 0 then100 if time > 2 and bInit2 == 0 then 95 101 cameraManager:toggleFade() 96 gameWorld:showText("Earth Solar System");97 102 bInit2 = 1 98 103 end 99 100 shutle:tick(timestep)101 104 102 105 if not cameraSwitched then … … 107 110 end 108 111 109 if time > 4 then 110 --cameraManager:toggleFade() 111 --return true 112 if time > 4 and stationReached and not fadeout then 113 cameraManager:toggleFade() 114 fadeout = true 115 end 116 117 if time > 6 and stationReached then 118 gameWorld:setNextStoryName( "Space Station 1" ) 119 gameWorld:stop() 120 return true 112 121 end 113 122
Note: See TracChangeset
for help on using the changeset viewer.