Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- LT_fnc_CheckRoleVehicleLock
- Description:
- When unit enters vehicle this check will be done to ensure that the person that steps into the vehicle has the correct role.
- */
- _unit = _this select 0;
- _pos = _this select 1;
- _veh = _this select 2;
- _turret = _this select 3;
- _roles = ["co", "vc", "vg", "vd", "pp", "pcc", "pc"];
- if (_role in _roles || serverCommandAvailable "#kick") exitWith {};
- _isVehicleWithSpecificRole = _veh getVariable ["VehicleRoleLock"];
- if (_isVehicleWithSpecificRole) then {
- _unit action ["GetOut", vehicle _unit];
- };
Add Comment
Please, Sign In to add comment