script mover doesnt do as its told!


(.Chris.) #1

hey again, i have been working on this elevator thing based on the doors in battery without the generators part but the thing is when i load the map the level and the elevator just go to the edge of the map, even stranger is when i press the button to move it, it keeps going to the edge only in a different direction, one go horizontly and other is diagonally, i havent got a clue what i have done wrong, both movers have origin brushes, all script/targetnames are spelt correctly but still this happens? anyone got any ideas? or have had this proble before?

here is my script for the lift:


// ======================
// THE LIFT
// ======================

planelift_trigger1 
{
   spawn
   {
      accum 6 set 1
      wait 500
      trigger planelift_trigger1 main
   }
   trigger main  
   {
      globalaccum 1 abort_if_not_equal 0
      trigger planelift_trigger1 up
      trigger planelift_trigger1 down

   }
   trigger up
   {
         accum 6 abort_if_not_equal 1
         resetscript

         trigger planelift_lever1 up
         accum 6 set 0
   }
   trigger down
   {
         accum 6 abort_if_not_equal 0
         resetscript

         trigger planelift_lever1 down
         accum 6 set 1
   }
}

planelift_lever1  
{
   spawn
   {
   }
   trigger down
   {
      gotomarker planelift_pos_down 16
      playsound sound/movers/switches/switch.wav
      trigger plane_lift close
      
   }
   trigger up
   {
      gotomarker planelift_pos_up 16
      playsound sound/movers/switches/switch.wav
      trigger plane_lift open
      
   }
}

plane_lift //this would be your elevator entity
{
   spawn
   {
   }

   trigger open
   {
      wait 500
      playsound sound/movers/misc/garage_door_start_01.wav volume 127
      wait 350
      gotomarker planelift_point_1 17 wait
      playsound sound/movers/misc/garage_door_end_01.wav volume 127
   }

   trigger close
   {
      wait 500
      playsound sound/movers/misc/garage_door_start_01.wav volume 127
      wait 350
      gotomarker planelift_point_2 17 wait
      playsound sound/movers/misc/garage_door_end_01.wav volume 127
   }
}

addapted from battery script and one used in a search i did. sounds work thats about it :smiley: