Jump to content
Sign in to follow this  
terrence

Pilot check killing Halo Jumpers

Recommended Posts

I have a simple halo script in my arma 3. It worked great until I added a pilot check script to require a certain amount on XP to fly Helis or Planes. Now when you Halo jump it either kills you or ejects you from you parachute which in turn kills you lol.

 while {true} do
{
_canfly = player getVariable ["playerxp",0];
if (_canfly > 599) exitwith{};
if (_canfly < 600) then {
   private "_v";
   while {alive player} do {
_canfly2 = player getVariable ["playerxp",0];
if (_canfly2 > 599) exitwith{};
     waituntil {vehicle player != player};
  _v = vehicle player;
     if (_v iskindof "Helicopter") then
  {
       if (driver _v == player) then 
	{
         player action ["eject",_v];
         waituntil {vehicle player == player};
         hint "Rank required to fly: Captain or higher.";
	 }; 
     };
  if (_v iskindof "Plane") then
  {
       if (driver _v == player) then {
         player action ["eject",_v];
         waituntil {vehicle player == player};
         hint "Rank required to fly: Captain or higher.";
	 }; 
     };
   };
 };
sleep 10;
};

Im still pretty new to scripting but I cant seem to find the problem that keeps killing players.

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  

×