put this in your mission file
antiheli.sqf
Code:private["_inVehicle","_isVehicle"]; while {true} do { _inVehicle = (vehicle player != player); _isVehicle = vehicle player; if (_inVehicle && (vehicle player) iskindof "Su34" || _inVehicle && (vehicle player) iskindof "SU39" || _inVehicle && (vehicle player) iskindof "A10" || _inVehicle && (vehicle player) iskindof "tank" || _inVehicle && (vehicle player) iskindof "AV8B2" || _inVehicle && (vehicle player) iskindof "AV-8B" || _inVehicle && (vehicle player) iskindof "A-10" || _inVehicle && (vehicle player) iskindof "Su-25") then { _isVehicle lock false; sleep .1; player action ["eject", _isVehicle]; }; sleep 1; };
and add this into your init.sqf
Code:_nul = [] execVM "fixes\antiheli.sqf";
basically what this does is if anyone tries to get in the above vehicles tank, jets, A10 it will eject them out of it and they cant fly/drive it
have any way to delete the vehicle when the player get into the vehicle?
or to blow up the vehicle, keeping the eject function if the player is in godmode?
thx