Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- Player_5_Chair,
- "Sit down",
- "",//"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa",
- "",//"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa",
- "",//"((_this == Player_5) && ((Player_5 distance Player_5_Sitpos) < 1.8) && (cursorObject == Player_5_Chair))",
- "",//"((_this == Player_5) && ((Player_5 distance Player_5_Sitpos) < 1.8) && (cursorObject == Player_5_Chair))",
- {},
- {},
- {
- [Player_5, "SIT_U1", "ASIS", Player_5_SitPos] call BIS_fnc_ambientAnim;
- sleep 1.75;
- waitUntil {!isNull (findDisplay 46)};
- KeyDownEH = (findDisplay 46) displayAddEventHandler ["KeyDown", {
- _key = _this select 1;
- _exceptions = [];
- {_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"];
- if (not (_key in _exceptions)) then {
- Player_5 call BIS_fnc_ambientAnim__terminate;
- Player_5 setPosATL [20893.7, 19233.4, 0.603107];
- Player_5 setDir 175;
- (findDisplay 46) displayRemoveEventHandler ["KeyDown", KeyDownEH];
- if (_key in actionKeys "curatorInterface") then {
- [] spawn {
- sleep 1;
- openCuratorInterface;
- };
- };
- };
- }];
- },
- {},
- [],
- 1,
- 1,
- false,
- false
- ] call BIS_fnc_holdActionAdd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement