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