Skip to content

Commit c5ffc8e

Browse files
authored
Medical- Change Uncon Anim Event (#11399)
* Done * Docs
1 parent 814f59a commit c5ffc8e

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

addons/medical_engine/XEH_preInit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ addMissionEventHandler ["Loaded", {
6969
} forEach GVAR(fixedStatics);
7070
}];
7171

72-
["ace_unconscious", {
72+
["ace_unconscious_animation", {
7373
params ["_unit", "_active"];
7474
if (_active) then {
7575
// Use object reference to indicate the waitUnit is already running (this prevents issues with respawning units keeping SetVars)

addons/medical_status/functions/fnc_setUnconsciousState.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@ if (_unit == ace_player) then {
9696
// This event doesn't correspond to unconscious in statemachine
9797
// It's for any time a unit changes consciousness (including cardiac arrest)
9898
["ace_unconscious", [_unit, _active]] call CBA_fnc_globalEvent;
99+
["ace_unconscious_animation", [_unit, _active]] call CBA_fnc_globalEvent;

docs/wiki/framework/events-framework.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The vehicle events will also have the following local variables available `_gunn
3636
| Event Key | Parameters | Locality | Type | Description |
3737
|---------- |------------|----------|------|-------------|
3838
|`ace_unconscious` | [_unit, _state(BOOL)] | Global | Listen | Unit's unconscious state changed |
39+
|`ace_unconscious_animation` | [_unit, _state(BOOL)] | Global | Listen | Unit went into an uncon animation |
3940
|`ace_placedInBodyBag` | [_target, _bodyBag, _isGrave, _medic] | Global | Listen | Target placed into a bodybag Note: (Target will soon be deleted, target could be a bodybag) |
4041
|`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) |
4142
|`ace_treatmentStarted` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem, _createLitter] | Local | Listen | Treatment action has started (local on the _caller) |

0 commit comments

Comments
 (0)