Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/spacestation/switchtohangar.lua @ 4514

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

levelswitch in spacestation works now in both directions

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