Jump to content
Sign in to follow this  
wld427

Landing gear issue

Recommended Posts

Hey fellas,

We are using this code to raise and lower the landing gear ont he Puma helicopters. the only issue is i want the option to only appear when the chopper is withing 10m of the ground... what woudl be the best way to modify this as so.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class LowerLandingGear

  {

    displayName="Gear Down";

  position="gear";

    radius=1

    onlyForplayer = 1;

    condition="this animationPhase ""gear_F"" >= 0.5 and player in this";

    statement="this animate [""gear_F"", 0]; this animate [""gear_R"", 0];this say [""puma330_gear"", 0];";

  };

  class RaiseLandingGear

  {

    displayName="Gear Up";

    position="gear";

    radius=1

    onlyForplayer = 1;

    condition="this animationPhase ""gear_F"" < 0.5 and player in this";

    statement="this animate [""gear_F"", 1]; this animate [""gear_R"", 1];this say [""puma330_gear"", 1];";

  };

Share this post


Link to post
Share on other sites

i guess you should change your condition..

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

condition="this animationPhase ""gear_F"" >= 0.5 and player in this && (getpos this select 2) > 10";

i guess you are talking about "class UserActions"

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  

×