Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// init.sqf
private _fnc_kickOutPilot = {
params ["", "", "_vehicle"];
if !(_vehicle isKindOf "Air") exitWith {};
private _pilot = driver _vehicle;
if (!local _pilot) exitWith {};
if (rankId _pilot < 3) then {
_pilot action ["GetOut", _vehicle];
["CAManBase", "GetInMan", _fnc_kickOutPilot] call CBA_fnc_addClassEventHandler;
["CAManBase", "SeatSwitchedMan", _fnc_kickOutPilot] call CBA_fnc_addClassEventHandler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.