Update animDrag.sqf

This commit is contained in:
worldwidesorrow
2019-12-11 19:07:07 -06:00
committed by GitHub
parent bd7c93dd3c
commit f7e9ecbd5b

View File

@@ -1,5 +1,16 @@
// animDrag.sqf
private "_dragee";
_dragee = _this select 0;
_dragee = _this;
_dragee switchmove "ainjppnemstpsnonwrfldb_still";
// Check to see that the passed object matches local player object
if (player != _dragee) exitWith {};
if !(r_player_unconscious) exitWith {};
_dragee setVariable ["NORRN_unit_dragged", true, true];
// Animation needs to be synced on all clients.
[nil, _dragee, rSWITCHMOVE, "ainjppnemstpsnonwrfldb_still"] call RE;
_dragee playMoveNow "ainjppnemstpsnonwrfldb_still";
_dragee setDir -180;
_dragee setPos (getPos _dragee);