Changeset 4666 for data/trunk/scripts/vertical_scroller
- Timestamp:
- Jan 30, 2007, 8:01:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/vertical_scroller/vs1.lua
r4656 r4666 3 3 thisscript:addObject("CameraMan", "cameraManager") 4 4 thisscript:addObject("NPC", "Ragnar01") 5 thisscript:addObject("NPC", "Pirate01") 6 thisscript:addObject("NPC", "Pirate02") 7 thisscript:addObject("NPC", "Pirate03") 8 thisscript:addObject("NPC", "Pirate04") 9 thisscript:addObject("NPC", "Pirate05") 10 thisscript:addObject("NPC", "Pirate06") 11 thisscript:addObject("NPC", "Pirate07") 12 -- thisscript:addObject("NPC", "Pirate08") 5 13 -- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld") 6 14 … … 35 43 triggerRagnar:setDebugDraw(true) 36 44 triggerRagnar:setActiveOnCreation(false) 45 46 -- Create a great AI activater 47 triggerAI01 = ScriptTrigger() 48 triggerAI01:setScript("vs1.lua") 49 triggerAI01:setFunction("activateGroup1") 50 triggerAI01:setRadius(50) 51 triggerAI01:setTarget("Player") 52 triggerAI01:setAbsCoor(2600, 0, 15) 53 triggerAI01:setDebugDraw(true) 54 triggerAI01:setActiveOnCreation(false) 55 56 -- Create another great AI activater 57 triggerAI02 = ScriptTrigger() 58 triggerAI02:setScript("vs1.lua") 59 triggerAI02:setFunction("activateGroup2") 60 triggerAI02:setRadius(50) 61 triggerAI02:setTarget("Player") 62 triggerAI02:setAbsCoor(4900, 0, 50) 63 triggerAI02:setDebugDraw(true) 64 triggerAI02:setActiveOnCreation(false) 37 65 38 66 -- Global Variables … … 69 97 end 70 98 71 if counter > 6 and counter < 7then99 if counter > 5 and counter < 6 then 72 100 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03") 73 101 cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5) 74 102 end 75 103 76 if counter > 1 7then104 if counter > 14 then 77 105 cutsceneEnd = true 78 106 cameraManager:setCam("GameWorld-Camera") … … 89 117 return true 90 118 end 119 120 function activateGroup1(timestep) 121 122 Pirate01:setAI(true) 123 Pirate02:setAI(true) 124 Pirate03:setAI(true) 125 126 return true 127 end 128 129 function activateGroup2(timestep) 130 131 Pirate04:setAI(true) 132 Pirate05:setAI(true) 133 Pirate06:setAI(true) 134 135 return true 136 end 137
Note: See TracChangeset
for help on using the changeset viewer.