mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-26 03:36:02 +03:00
Add files via upload
These files are either new or have extensive edits.
This commit is contained in:
26
SQF/dayz_code/medical/publicEH/animCarry.sqf
Normal file
26
SQF/dayz_code/medical/publicEH/animCarry.sqf
Normal file
@@ -0,0 +1,26 @@
|
||||
// animDrag.sqf
|
||||
private "_dragee";
|
||||
|
||||
_dragee = _this;
|
||||
|
||||
// Check to see that the passed object matches local player object
|
||||
if (player != _dragee) exitWith {};
|
||||
if !(r_player_unconscious) exitWith {};
|
||||
|
||||
// Have to wait until attached to set direction and position
|
||||
_dragee setDir -180;
|
||||
_dragee setPos (getPos _dragee);
|
||||
|
||||
_dragee setVariable ["NORRN_unit_dragged", true, true];
|
||||
|
||||
uiSleep 1.5;
|
||||
|
||||
// First animation
|
||||
[nil, _dragee, rSWITCHMOVE, "ainjpfalmstpsnonwrfldnon_carried_up"] call RE;
|
||||
_dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_up";
|
||||
|
||||
uiSleep 10;
|
||||
|
||||
// Second animation
|
||||
[nil, _dragee, rSWITCHMOVE, "ainjpfalmstpsnonwrfldnon_carried_still"] call RE;
|
||||
_dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_still";
|
||||
Reference in New Issue
Block a user