Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/moonstation/switchLevel.lua @ 4887

Last change on this file since 4887 was 4867, checked in by vkaenemi, 17 years ago

added subground level, intro script explosion, questfix, vis, levelswitch

File size: 511 bytes
Line 
1  -- Create the trigger
2trigger = SpaceTrigger()
3trigger:setScript("switchLevel.lua")
4trigger:setFunction("switch")
5trigger:setAbsCoor(210, -826, -506)
6trigger:setTarget("Player")
7trigger:setRadius(50)
8trigger:setTriggerRemains(false)
9
10
11-- Add Objects
12thisscript:addObject("FPSPlayer", "Player")
13thisscript:addObjectAsName("GameWorld", "Moon Station", "gameWorld")
14
15function switch(timestep)
16        if gameWorld:setNextStoryName( "Moonstation Hangar" ) then
17                gameWorld:stop()
18        end
19        return true
20end
Note: See TracBrowser for help on using the repository browser.