Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.77 KB | None | 0 0
  1. [
  2.     Player_5_Chair,
  3.     "Sit down",
  4.     "",//"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa",
  5.     "",//"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa",
  6.     "",//"((_this == Player_5) && ((Player_5 distance Player_5_Sitpos) < 1.8) && (cursorObject == Player_5_Chair))",
  7.     "",//"((_this == Player_5) && ((Player_5 distance Player_5_Sitpos) < 1.8) && (cursorObject == Player_5_Chair))",
  8.     {},
  9.     {},
  10.     {
  11.         [Player_5, "SIT_U1", "ASIS", Player_5_SitPos] call BIS_fnc_ambientAnim;
  12.         sleep 1.75;
  13.         waitUntil {!isNull (findDisplay 46)};
  14.         KeyDownEH = (findDisplay 46) displayAddEventHandler ["KeyDown", {
  15.             _key = _this select 1;
  16.             _exceptions = [];
  17.             {_exceptions = _exceptions + actionKeys _x} forEach ["ingamePause", "personView", "zoomIn", "zoomInToggle", "zoomOut", "zoomOutToggle", "showMap", "hideMap", "diary", "tasks", "compass", "compassToggle", "watch", "watchToggle", "networkStats", "prevChannel", "nextChannel", "chat", "pushToTalk", "pushToTalkAll", "pushToTalkSide", "pushToTalkCommand", "pushToTalkGroup", "pushToTalkVehicle", "pushToTalkDirect"];
  18.             if (not (_key in _exceptions)) then {
  19.                 Player_5 call BIS_fnc_ambientAnim__terminate;
  20.                 Player_5 setPosATL [20893.7, 19233.4, 0.603107];
  21.                 Player_5 setDir 175;
  22.                 (findDisplay 46) displayRemoveEventHandler ["KeyDown", KeyDownEH];
  23.                 if (_key in actionKeys "curatorInterface") then {
  24.                     [] spawn {
  25.                         sleep 1;
  26.                         openCuratorInterface;
  27.                     };
  28.                 };
  29.             };
  30.         }];
  31.     },
  32.     {},
  33.     [],
  34.     1,
  35.     1,
  36.     false,
  37.     false
  38. ] call BIS_fnc_holdActionAdd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement