-- Create the trigger --trigger = ScriptTrigger() --trigger:setName("maintrigger") --trigger:setScript("spaceship_hangar.lua") --trigger:setFunction("tick") --trigger:setActiveOnCreation(true) -- Cameraswitchzero triggerZero = ScriptTrigger() triggerZero:setScript("spaceship_hangar.lua") triggerZero:setFunction("switchToVertical") triggerZero:setAbsCoor(5214.267090, 21.617924, -4482.451660) triggerZero:setTarget("Player") triggerZero:setRadius(50) --triggerZero:setDebugDraw(true) thisscript:addObjectAsName("GameWorld", "Space Station 1B", "gameWorld") function switchToVertical(timestep) if gameWorld:setNextStoryName( "In Space" ) then gameWorld:stop() end return true end