Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/spacestation/spaceship_hangar.lua @ 4605

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

removed debug draw

File size: 715 bytes
Line 
1 -- Create the trigger
2--trigger = ScriptTrigger()
3--trigger:setName("maintrigger")
4--trigger:setScript("spaceship_hangar.lua")
5--trigger:setFunction("tick")
6--trigger:setActiveOnCreation(true)
7 
8
9-- Cameraswitchzero
10triggerZero = ScriptTrigger()
11triggerZero:setScript("spaceship_hangar.lua")
12triggerZero:setFunction("switchToVertical")
13triggerZero:setAbsCoor(5214.267090, 21.617924, -4482.451660)
14triggerZero:setTarget("Player")
15triggerZero:setRadius(50)
16--triggerZero:setDebugDraw(true)
17
18thisscript:addObjectAsName("GameWorld", "Space Station 1B", "gameWorld")
19
20
21function switchToVertical(timestep)
22if gameWorld:setNextStoryName( "In Space" ) then
23gameWorld:stop()
24end
25return true
26end
27
Note: See TracBrowser for help on using the repository browser.