Jump to content
Sign in to follow this  
Drangoll45

Rudder animations Issue

Recommended Posts

Hi i'm making an helicopter (i'm not going to release it on armaholic on whatever site)


 


I'm having problems with the rudder animations.


(i've tested the animations with the command "animate")


 


 


What i've done :


 


  • I have set the "source" in the model.cfg for these animations to "rudderRTD" but nothing appens
  • I have created a script that converts the pressure of the "Q" key ( the default rudder key) into the animation of the 2 rotors but and also here nothing appens.

 


This is the script (the interesting part starts at the first "inputaction condition") :


 


 


 


while { true } do


{


if (player in vehicle player) then


{


  while {getPosASLW vehicle player select 2 < 10  } do


  {


   vehicle player animate ["flight_mode_left",0];


   vehicle player animate ["flight_mode_right",0];


            vehicle player animate ["rotate_mala_vrtule",0];


   vehicle player animate ["rotate_velka_vrtule",0];


   };


  while {getPosASLW vehicle player select 2 > 10 } do


  {


   vehicle player animate ["flight_mode_left",1];


   vehicle player animate ["flight_mode_right",1];


   vehicle player animate ["rotate_mala_vrtule",1];


   vehicle player animate ["rotate_velka_vrtule",1];


  };


  while {(inputAction "heliRudderLeft" > 0) } do


  {


   vehicle player animate ["rudder_l_rotor",1];


   vehicle player animate ["rudder_l_velka_vrtule",1];


  };


  while {(inputAction "heliRudderLeft" == 0) } do


  {


   vehicle player animate ["rudder_l_rotor",0];


   vehicle player animate ["rudder_l_velka_vrtule",0];


  };


  while {(inputAction "heliRudderRight " > 0) } do


  {


   vehicle player animate ["rudder_r_rotor",1];


   vehicle player animate ["rudder_r_mala_vrtule",1];


  };


  while {(inputAction "heliRudderRight " == 0) } do


  {


   vehicle player animate ["rudder_r_rotor",0];


   vehicle player animate ["rudder_r_mala_vrtule",0];


  };


};


};


Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×