mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update animDrag.sqf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user