Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4514 for data/trunk/scripts


Ignore:
Timestamp:
Jan 25, 2007, 4:44:14 PM (18 years ago)
Author:
snellen
Message:

levelswitch in spacestation works now in both directions

Location:
data/trunk/scripts/spacestation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/spacestation/switchtohangar.lua

    r4504 r4514  
    33trigger:setScript("switchtohangar.lua")
    44trigger:setFunction("tick")
    5 trigger:setAbsCoor(-5.601662, 35, -1264.822632)
     5trigger:setAbsCoor(-5.601662, 35, -1564.822632)
    66trigger:setTarget("Player")
    7 trigger:setRadius(200)
     7trigger:setRadius(700)
    88trigger:setTriggerRemains(false)
    99trigger:setDebugDraw(true)
     
    1414
    1515function tick(timestep)
    16 
    1716if spacestationtower:setNextStoryName( "Space Station 1B" ) then
    1817spacestationtower:stop()
  • data/trunk/scripts/spacestation/switchtotower.lua

    r4504 r4514  
    33trigger:setScript("switchtotower.lua")
    44trigger:setFunction("tick")
    5 trigger:setAbsCoor(-5.601662, 35, -1264.822632)
     5trigger:setAbsCoor(4470.895508, 17.554901, -3433.780518)
    66trigger:setTarget("Player")
    7 trigger:setRadius(200)
     7trigger:setRadius(500)
    88trigger:setTriggerRemains(false)
    99trigger:setDebugDraw(true)
     
    1111
    1212-- Add Objects
    13 thisscript:addObjectAsName("GameWorld", "Space Station 1B", "spacestationhanger")
     13thisscript:addObjectAsName("GameWorld", "Space Station 1B", "spacestationtower")
    1414
    1515function tick(timestep)
    16 
    17 if spacestationhanger:setNextStoryName( "Space Station 1" ) then
    18 spacestationhanger:stop()
     16io.write("TESTING TESTING \n")
     17if spacestationtower:setNextStoryName( "Space Station 1" ) then
     18spacestationtower:stop()
    1919end
    2020return true
Note: See TracChangeset for help on using the changeset viewer.