Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/spacestation/switchtotower.lua @ 4521

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

levelswitch in spacestation works now in both directions

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