Guest User

Untitled

a guest
Oct 21st, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. /*
  2. LT_fnc_CheckRoleVehicleLock
  3.  
  4. Description:
  5. When unit enters vehicle this check will be done to ensure that the person that steps into the vehicle has the correct role.
  6. */
  7.  
  8. _unit = _this select 0;
  9. _pos = _this select 1;
  10. _veh = _this select 2;
  11. _turret = _this select 3;
  12.  
  13. _roles = ["co", "vc", "vg", "vd", "pp", "pcc", "pc"];
  14. if (_role in _roles || serverCommandAvailable "#kick") exitWith {};
  15.  
  16. _isVehicleWithSpecificRole = _veh getVariable ["VehicleRoleLock"];
  17.  
  18. if (_isVehicleWithSpecificRole) then {
  19.  
  20. _unit action ["GetOut", vehicle _unit];
  21.  
  22. };
Add Comment
Please, Sign In to add comment