Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2007, 11:21:47 AM (17 years ago)
Author:
snellen
Message:

the questguis are now started by script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/spacestation/spaceship_tower.lua

    r4468 r4653  
    66trigger:setActiveOnCreation(true)
    77
     8triggerOne = ScriptTrigger()
     9triggerOne:setScript("spaceship_tower.lua")
     10triggerOne:setFunction("startSecondQuest")
     11triggerOne:setTarget("Player")
     12triggerOne:setAbsCoor(1177.693, -12.796, 203.514)
     13triggerOne:setRadius(50)
     14triggerOne:setDebugDraw(true)
     15
     16
    817-- Get objects from orxonox
    918thisscript:addObject("FPSPlayer", "Player")
    1019thisscript:addObject("GenericNPC", "pedestrianOne")
    1120thisscript:addObject("GenericNPC", "hangarguyOne")
     21thisscript:addObject("QuestGUI", "First_Quest")
     22thisscript:addObject("QuestGUI", "Second_Quest")
     23
     24
     25
     26
     27-- Globals
     28questOneStarted = false
    1229
    1330
     
    149166
    150167
     168function startSecondQuest(timestep)
     169
     170--if First_Quest:isActive() then
     171Second_Quest:startGUI()
     172return true
     173--end
     174
     175--return false
     176end
     177
    151178
    152179-- THE tick function
     
    155182--io.write("Towerscript called \n")
    156183
     184if not questOneStarted then
     185First_Quest:startGUI()
     186questOneStarted = true
     187end
     188
     189
    157190pedestrian:tick(timestep)
    158191hangarguy:tick(timestep)
Note: See TracChangeset for help on using the changeset viewer.