Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4601


Ignore:
Timestamp:
Jan 28, 2007, 10:33:52 PM (18 years ago)
Author:
snellen
Message:

sctipted switch to vertical scroller

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4597 r4601  
    154154            <size>175</size>
    155155            <abs-coor>-75, 0, 300</abs-coor>
    156           <abs-dir>3.1412, 1,0,0</abs-dir>
     156          <abs-dir>3.1412, 0,0,1</abs-dir>
     157          <abs-dir>0.5, 0,1,0</abs-dir>
    157158            <texture>textures/planets/earth_no_clouds_2048.jpg</texture>
    158159            <cloud-texture>textures/planets/halo.png</cloud-texture>
  • data/trunk/scripts/spacestation/spaceship_hangar.lua

    r4468 r4601  
    11 -- Create the trigger
    2 trigger = ScriptTrigger()
    3 trigger:setName("maintrigger")
    4 trigger:setScript("spaceship_hangar.lua")
    5 trigger:setFunction("tick")
    6 trigger:setActiveOnCreation(true)
     2--trigger = ScriptTrigger()
     3--trigger:setName("maintrigger")
     4--trigger:setScript("spaceship_hangar.lua")
     5--trigger:setFunction("tick")
     6--trigger:setActiveOnCreation(true)
    77 
    88
     9-- Cameraswitchzero
     10triggerZero = ScriptTrigger()
     11triggerZero:setScript("spaceship_hangar.lua")
     12triggerZero:setFunction("switchToVertical")
     13triggerZero:setAbsCoor(5214.267090, 21.617924, -4482.451660)
     14triggerZero:setTarget("Player")
     15triggerZero:setRadius(50)
     16triggerZero:setDebugDraw(true)
     17
     18thisscript:addObjectAsName("GameWorld", "Space Station 1B", "gameWorld")
    919
    1020
    11 -- THE tick function
     21function switchToVertical(timestep)
     22if gameWorld:setNextStoryName( "In Space" ) then
     23gameWorld:stop()
     24end
     25return true
     26end
    1227
    13 function tick(timestep)
    14 --io.write("Hangarscript called \n")
    15 
    16 
    17 return false
    18 end
Note: See TracChangeset for help on using the changeset viewer.