From 3947189067e0dfe7a23b67ea75e7dba227b6d043 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Thu, 4 Jun 2026 14:20:10 -0700 Subject: [PATCH 1/2] Done --- addons/medical_engine/XEH_preInit.sqf | 2 +- addons/medical_status/functions/fnc_setUnconsciousState.sqf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/medical_engine/XEH_preInit.sqf b/addons/medical_engine/XEH_preInit.sqf index 9922c128f67..2fc739665c2 100644 --- a/addons/medical_engine/XEH_preInit.sqf +++ b/addons/medical_engine/XEH_preInit.sqf @@ -69,7 +69,7 @@ addMissionEventHandler ["Loaded", { } forEach GVAR(fixedStatics); }]; -["ace_unconscious", { +["ace_unconscious_animation", { params ["_unit", "_active"]; if (_active) then { // Use object reference to indicate the waitUnit is already running (this prevents issues with respawning units keeping SetVars) diff --git a/addons/medical_status/functions/fnc_setUnconsciousState.sqf b/addons/medical_status/functions/fnc_setUnconsciousState.sqf index 4b39c7f2f47..4eda3e5731e 100644 --- a/addons/medical_status/functions/fnc_setUnconsciousState.sqf +++ b/addons/medical_status/functions/fnc_setUnconsciousState.sqf @@ -96,3 +96,4 @@ if (_unit == ace_player) then { // This event doesn't correspond to unconscious in statemachine // It's for any time a unit changes consciousness (including cardiac arrest) ["ace_unconscious", [_unit, _active]] call CBA_fnc_globalEvent; +["ace_unconscious_animation", [_unit, _active]] call CBA_fnc_globalEvent; From 5e814860828910f090ca31097ebe3d363cff7134 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:49:18 -0700 Subject: [PATCH 2/2] Docs --- docs/wiki/framework/events-framework.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/wiki/framework/events-framework.md b/docs/wiki/framework/events-framework.md index 1ae02de7c78..27fd6236f1b 100644 --- a/docs/wiki/framework/events-framework.md +++ b/docs/wiki/framework/events-framework.md @@ -36,6 +36,7 @@ The vehicle events will also have the following local variables available `_gunn | Event Key | Parameters | Locality | Type | Description | |---------- |------------|----------|------|-------------| |`ace_unconscious` | [_unit, _state(BOOL)] | Global | Listen | Unit's unconscious state changed | +|`ace_unconscious_animation` | [_unit, _state(BOOL)] | Global | Listen | Unit went into an uncon animation | |`ace_placedInBodyBag` | [_target, _bodyBag, _isGrave, _medic] | Global | Listen | Target placed into a bodybag Note: (Target will soon be deleted, target could be a bodybag) | |`ace_placedInGrave` | [_target, _grave, _medic] | Global | Listen | Target placed into a grave, _grave will be objNull if `Create Grave Markers` is disabled Note: (Target will soon be deleted) | |`ace_treatmentStarted` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem, _createLitter] | Local | Listen | Treatment action has started (local on the _caller) |