Advertisement
Guest User

Untitled

a guest
Mar 10th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.05 KB | None | 0 0
  1. //Restraining (Shift + R)
  2.     case 19: {
  3.         if (_shift) then {_handled = true};
  4.         if (_shift && playerSide isEqualTo west && {!isNull cursorObject} && {cursorObject isKindOf "CAManBase"} && {(isPlayer cursorObject)} && {(side cursorObject in [civilian,independent])} && {alive cursorObject} && {cursorObject distance player < 3.5} && {!(cursorObject getVariable "Escorting")} && {!(cursorObject getVariable "restrained")} && {speed cursorObject < 1}) then {
  5.         };
  6.         if (_shift && playerSide isEqualTo civilian && {!isNull cursorObject} && {cursorObject isKindOf "CAManBase"} && {(isPlayer cursorObject)} && {(side cursorObject in [civilian,independent])} && {alive cursorObject} && {cursorObject distance player < 3.5} && {!(cursorObject getVariable "Escorting")} && {!(cursorObject getVariable "restrained")} && {speed cursorObject < 1}) then {
  7.             if (FETCH_CONST(life_hunterlevel) < 1) exitWith {};
  8.         };
  9.         if (_ctrlKey && playerSide isEqualTo west && vehicle player != player) then
  10.         {
  11.             [] call life_fnc_radar;
  12.         };
  13.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement