12-29-2015, 10:12 PM
I used this in Bloodlines to prevent all non-Pilots to steer the Little Birds:
units p13, p14 and p15 are the pilots, mh1, mh2 and mh3 are the MH-9's.
Code:
{
  _x addEventHandler ["GetIn",
  {
    _vehicle = _this select 0;
    _position = _this select 1;
    _unit = _this select 2;
    if (_position == "driver") then {
      if (_unit != p13 && _unit != p14 && _unit != p15) then {
        doGetOut _unit;
        hint "You are not qualified to fly this rotary aircraft";
      };
    };
  }];
} forEach [mh1, mh2, mh3];
]
units p13, p14 and p15 are the pilots, mh1, mh2 and mh3 are the MH-9's.
I don't need luck, I have ammo.