diwako / armor_plates_system

Standalone Arma 3 Alternative Medical System
Other
8 stars 9 forks source link

Event for unconscious state changes #112

Closed diwako closed 1 month ago

diwako commented 1 year ago

Is your enhancement related to a problem?

A global CBA event raised when the unconscious state has changed of a unit Parameters are: 1 Unit 2 Is unconscious

Solution you'd like:

so I can subscribe to the event like so

["eventname", {
  params ["_unit", "_state"];
  systemChat format ["%1 is now %2", name _unit, ["awake", "unconscious"] select _state];
}] call CBA_fnc_addEventhandler;

Alternatives you've considered:

nah

Additional context:

Needed for mod and mission compat. Requested by Antistasi dev team