mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Add files via upload
These files are either new or have extensive edits.
This commit is contained in:
18
SQF/dayz_code/medical/publicEH/animDrop.sqf
Normal file
18
SQF/dayz_code/medical/publicEH/animDrop.sqf
Normal file
@@ -0,0 +1,18 @@
|
||||
// animDrop.sqf
|
||||
private "_dragee";
|
||||
|
||||
_dragee = _this;
|
||||
|
||||
// Check to see that the passed object matches local player object
|
||||
if (player != _dragee) exitWith {};
|
||||
|
||||
_dragee setVariable ["NORRN_unit_dragged", false, true];
|
||||
detach _dragee;
|
||||
|
||||
// We don't want to override the animations from fn_unconscious or load_act.sqf
|
||||
if (r_player_unconscious) then {
|
||||
|
||||
// Animation needs to be synced on all clients.
|
||||
[nil, _dragee, rSWITCHMOVE, "ainjppnemstpsnonwrfldnon"] call RE;
|
||||
_dragee switchmove "ainjppnemstpsnonwrfldnon";
|
||||
};
|
||||
Reference in New Issue
Block a user