From f7e9ecbd5ba7d5f81b56cba5c6f893e305853828 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 11 Dec 2019 19:07:07 -0600 Subject: [PATCH] Update animDrag.sqf --- SQF/dayz_code/medical/publicEH/animDrag.sqf | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/medical/publicEH/animDrag.sqf b/SQF/dayz_code/medical/publicEH/animDrag.sqf index 0a5fc2899..8bf628bcf 100644 --- a/SQF/dayz_code/medical/publicEH/animDrag.sqf +++ b/SQF/dayz_code/medical/publicEH/animDrag.sqf @@ -1,5 +1,16 @@ // animDrag.sqf +private "_dragee"; -_dragee = _this select 0; +_dragee = _this; -_dragee switchmove "ainjppnemstpsnonwrfldb_still"; \ No newline at end of file +// 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);