mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
98da279e8f
Give blood in CA if needed before doing CPR
29 lines
689 B
Plaintext
29 lines
689 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: BaerMitUmlaut
|
|
* Sends a request to the units assigned medic to heal it.
|
|
*
|
|
* Arguments:
|
|
* Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* cursorObject call ace_medical_ai_fnc_requestMedic
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
private _assignedMedic = _this getVariable QGVAR(assignedMedic);
|
|
private _healQueue = _assignedMedic getVariable [QGVAR(healQueue), []];
|
|
|
|
// Only update if it was actually changed
|
|
if (_healQueue pushBackUnique _this != -1) then {
|
|
_assignedMedic setVariable [QGVAR(healQueue), _healQueue];
|
|
};
|
|
|
|
#ifdef DEBUG_MODE_FULL
|
|
systemChat format ["%1 requested %2 for medical treatment", _this, _assignedMedic];
|
|
#endif
|