Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/old_trunk/scripts/spacestation/switchtohangar.lua @ 4476

Last change on this file since 4476 was 4448, checked in by snellen, 18 years ago

reorganized scripts (put them in folders), implemented levelchange by script, put some npcs in spaceshiptower

File size: 477 bytes
Line 
1 -- Create the trigger
2trigger = ScriptTrigger()
3trigger:setScript("switchtohangar.lua")
4trigger:setFunction("tick")
5trigger:setAbsCoor(-5.601662, 35, -1264.822632)
6trigger:setTarget("Player")
7trigger:setRadius(200)
8trigger:setTriggerRemains(false)
9trigger:setDebugDraw(true)
10
11
12-- Add Objects
13thisscript:addObject("GameWorld", "Spaceship_Tower")
14
15function tick(timestep)
16
17if Spaceship_Tower:setNextStoryName( "Ambush_at_Uranus" ) then
18Spaceship_Tower:stop()
19end
20return true
21end
Note: See TracBrowser for help on using the repository browser.