Skip to content

Instantly share code, notes, and snippets.

@vabene1111
Created April 26, 2018 08:35
Show Gist options
  • Save vabene1111/3f7520b4170d38e875e2b9a082a87886 to your computer and use it in GitHub Desktop.
Save vabene1111/3f7520b4170d38e875e2b9a082a87886 to your computer and use it in GitHub Desktop.
private _sitPosition = [-0.820113,-0.13,-0.5];
_seat = test;
[player, call acex_sitting_fnc_getRandomAnimation, 2] call ace_common_fnc_doAnimation;
[player, "", 1] call ace_common_fnc_doAnimation;
player setDir (getDir _seat) + 180;
player setPosASL (AGLtoASL (_seat modelToWorld _sitPosition));
player setVariable ["acex_sitting_isSitting", [_seat, 1]];
player setVariable ["acex_sitting_seatPos", 1];
_seat setVariable [format["%1%2","acex_sitting_pos_",1],true,true];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment