Medical Vitals - Add event to vitals loop (#8891)

* Added event to vitals loop

* Pass deltaT to event

* Added event to documentation
This commit is contained in:
pterolatypus 2022-05-04 00:04:58 +01:00 committed by GitHub
parent 36ae99b9f3
commit 67842a2656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -165,4 +165,7 @@ if (!isPlayer _unit) then {
END_COUNTER(Vitals);
//placed outside the counter as 3rd-party code may be called from this event
[QEGVAR(medical,handleUnitVitals), [_unit, _deltaT]] call CBA_fnc_localEvent;
true

View File

@ -40,6 +40,7 @@ The vehicle events will also have the following local variables available `_gunn
|`ace_treatmentStarted` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem] | Local | Listen | Treatment action has started (local on the _caller)
|`ace_treatmentSucceded` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem] | Local | Listen | Treatment action is completed (local on the _caller)
|`ace_treatmentFailed` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem] | Local | Listen | Treatment action has been interrupted (local on the _caller)
|`ace_medical_handleUnitVitals` | [_unit, _deltaT] | Local | Listen | Vitals update ran for unit, _deltaT is the time elapsed since the previous vitals update (local to _unit)
### 2.3 Interaction Menu (`ace_interact_menu`)
MenuType: 0 = Interaction, 1 = Self Interaction