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 |
---|
10 | triggerZero = ScriptTrigger() |
---|
11 | triggerZero:setScript("spaceship_hangar.lua") |
---|
12 | triggerZero:setFunction("switchToVertical") |
---|
13 | triggerZero:setAbsCoor(5214.267090, 21.617924, -4482.451660) |
---|
14 | triggerZero:setTarget("Player") |
---|
15 | triggerZero:setRadius(50) |
---|
16 | --triggerZero:setDebugDraw(true) |
---|
17 | |
---|
18 | thisscript:addObjectAsName("GameWorld", "Space Station 1B", "gameWorld") |
---|
19 | |
---|
20 | |
---|
21 | function switchToVertical(timestep) |
---|
22 | if gameWorld:setNextStoryName( "In Space" ) then |
---|
23 | gameWorld:stop() |
---|
24 | end |
---|
25 | return true |
---|
26 | end |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.