Advertisement
Ferix

Untitled

Jun 23rd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.51 KB | None | 0 0
  1. //If target is a player then check if we can use the cop menu.
  2. if (isPlayer _curObject && _curObject isKindOf "Man") then {
  3.     if ((_curObject getVariable ["restrained",false]) && !dialog && playerSide isEqualTo west) then {
  4.         [_curObject] call life_fnc_copInteractionMenu;
  5.     } else {
  6.  
  7.     if ((_curObject getVariable ["restrained",false]) && !(player getVariable "restrained") && !dialog && playerSide isEqualTo civilian) then {
  8.           [_curObject] call life_fnc_civInteractionMenu;
  9.       };
  10.     };
  11.  
  12. } else {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement