Changeset 4655 for data/trunk/scripts/cutscene/cutscene.lua
- Timestamp:
- Jan 30, 2007, 4:06:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/cutscene/cutscene.lua
r4606 r4655 44 44 --triggerThree:setDebugDraw(true) 45 45 46 46 47 -- startScenery 48 triggerFour = ScriptTrigger() 49 triggerFour:setScript("cutscene.lua") 50 triggerFour:setFunction("startSceneryOne") 51 triggerFour:setAbsCoor(125,0,-245) 52 triggerFour:setTarget("CameraOne") 53 triggerFour:setRadius(5) 54 triggerFour:setDebugDraw(true) 55 56 47 57 -- Get objects from orxonox 48 58 thisscript:addObject("CameraMan", "cameraManager") 59 thisscript:addObject("NPC", "shutleOne") 60 thisscript:addObject("NPC", "bomberOne") 61 thisscript:addObject("NPC", "fighterOne") 62 thisscript:addObject("NPC", "bomberTwo") 63 thisscript:addObject("NPC", "fighterTwo") 64 thisscript:addObject("NPC", "pirateOne") 65 thisscript:addObject("NPC", "pirateTwo") 49 66 thisscript:addObject("NPC", "fighterThree") 67 thisscript:addObject("NPC", "bomberThree") 68 thisscript:addObject("NPC", "bomberFour") 50 69 thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld") 51 70 thisscript:addObjectAsName("ScrollingScreen", "Credits Scroller","scrollingScreen") … … 54 73 -- Global Variables 55 74 time = 0 56 stationReached = false57 75 fadeout = false 58 76 bInit = 0 59 77 bInit2 = 0 60 78 sceneryOneStopped = false 79 sceneryOneRunning = false 80 stationReached = false 61 81 62 82 -- Switch cam functions … … 85 105 86 106 107 -- Start 108 function startSceneryOne(timestep) 109 110 --shutleOne:unhide() 111 --bomberOne:unhide() 112 --fighterOne:unhide() 113 --bomberTwo:unhide() 114 --fighterTwo:unhide() 115 --pirateOne:unhide()) 116 --pirateTwo:unhide() 117 --fighterThree:unhide() 118 --bomberThree:unhide() 119 120 shutleOne:pause(false) 121 bomberOne:pause(false) 122 fighterOne:pause(false) 123 bomberTwo:pause(false) 124 fighterTwo:pause(false) 125 pirateOne:pause(false) 126 pirateTwo:pause(false) 127 fighterThree:pause(false) 128 bomberThree:pause(false) 129 bomberFour:pause(false) 130 131 sceneryOneRunning = true 132 time = 0 133 134 return true 135 136 end 137 138 -- Stop 139 function stopSceneryOne(timestep) 140 141 --shutleOne:hide() 142 --bomberOne:hide() 143 --fighterOne:hide() 144 --bomberTwo:hide() 145 --fighterTwo:hide() 146 --pirateOne:hide()) 147 --pirateTwo:hide() 148 --fighterThree:hide() 149 --bomberThree:hide() 150 151 shutleOne:pause(true) 152 bomberOne:pause(true) 153 fighterOne:pause(true) 154 bomberTwo:pause(true) 155 fighterTwo:pause(true) 156 pirateOne:pause(true) 157 pirateTwo:pause(true) 158 fighterThree:pause(true) 159 bomberThree:pause(true) 160 bomberFour:pause(false) 161 162 return true 163 164 end 165 87 166 88 167 -- THE tick function … … 91 170 time = time + timestep 92 171 172 if not sceneryOneStopped then 173 sceneryOneStopped = stopSceneryOne(timestep) 174 end 93 175 94 176 if bInit == 0 then … … 105 187 106 188 107 if time > 3 and time < 4then189 if time > 8 and time < 8.5 and sceneryOneRunning then 108 190 fighterThree:fire() 109 191 end … … 112 194 cameraManager:setCam("CameraOne") 113 195 cameraManager:jumpCurrCam(125,0,-245) 114 --cameraManager:atachCurrCameraToWorldEntity("NPC", "pirateOne")115 cameraManager:changeCurrTarget("Building", "zhara")196 cameraManager:atachCurrCameraToWorldEntity("NPC", "transporterOne") 197 --cameraManager:changeCurrTarget("Building", "zhara") 116 198 cameraSwitched = true 117 199 end
Note: See TracChangeset
for help on using the changeset viewer.