Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4514


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/sp_level_spacestation1.oxw

    r4507 r4514  
    1818    <FPSPlayer>
    1919      <name>Player</name>
    20       <model>models/planets/uranus.obj</model>
     20      <model>models/planets/uranus.obj, 4</model>
    2121      <abs-coor>128,20,0</abs-coor>
    2222    </FPSPlayer>
  • data/trunk/levels/sp_level_spacestation1B.oxw

    r4504 r4514  
    1010    <FPSPlayer>
    1111      <name>Player</name>
     12      <model>models/planets/uranus.obj, 4</model>
    1213      <abs-coor>4480,20,-4320</abs-coor>
    1314    </FPSPlayer>
     
    441442
    442443    <Script>
    443      <file>spacestation/spaceship_hanger.lua</file>
     444     <file>spacestation/spaceship_hangar.lua</file>
    444445    </Script>
    445446
  • 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.