Changeset 4653 for data/trunk/scripts/spacestation/spaceship_tower.lua
- Timestamp:
- Jan 30, 2007, 11:21:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/spacestation/spaceship_tower.lua
r4468 r4653 6 6 trigger:setActiveOnCreation(true) 7 7 8 triggerOne = ScriptTrigger() 9 triggerOne:setScript("spaceship_tower.lua") 10 triggerOne:setFunction("startSecondQuest") 11 triggerOne:setTarget("Player") 12 triggerOne:setAbsCoor(1177.693, -12.796, 203.514) 13 triggerOne:setRadius(50) 14 triggerOne:setDebugDraw(true) 15 16 8 17 -- Get objects from orxonox 9 18 thisscript:addObject("FPSPlayer", "Player") 10 19 thisscript:addObject("GenericNPC", "pedestrianOne") 11 20 thisscript:addObject("GenericNPC", "hangarguyOne") 21 thisscript:addObject("QuestGUI", "First_Quest") 22 thisscript:addObject("QuestGUI", "Second_Quest") 23 24 25 26 27 -- Globals 28 questOneStarted = false 12 29 13 30 … … 149 166 150 167 168 function startSecondQuest(timestep) 169 170 --if First_Quest:isActive() then 171 Second_Quest:startGUI() 172 return true 173 --end 174 175 --return false 176 end 177 151 178 152 179 -- THE tick function … … 155 182 --io.write("Towerscript called \n") 156 183 184 if not questOneStarted then 185 First_Quest:startGUI() 186 questOneStarted = true 187 end 188 189 157 190 pedestrian:tick(timestep) 158 191 hangarguy:tick(timestep)
Note: See TracChangeset
for help on using the changeset viewer.