2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-09-04 09:25:03 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Sends a request to the units assigned medic to heal it.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2024-07-23 13:28:40 +00:00
|
|
|
* Unit <OBJECT>
|
2016-09-04 09:25:03 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2024-07-23 13:28:40 +00:00
|
|
|
* cursorObject call ace_medical_ai_fnc_requestMedic
|
2016-09-04 09:25:03 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
private _assignedMedic = _this getVariable QGVAR(assignedMedic);
|
|
|
|
private _healQueue = _assignedMedic getVariable [QGVAR(healQueue), []];
|
2024-07-29 13:04:59 +00:00
|
|
|
|
|
|
|
// Only update if it was actually changed
|
|
|
|
if (_healQueue pushBackUnique _this != -1) then {
|
|
|
|
_assignedMedic setVariable [QGVAR(healQueue), _healQueue];
|
|
|
|
};
|
2016-09-04 09:25:03 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG_MODE_FULL
|
|
|
|
systemChat format ["%1 requested %2 for medical treatment", _this, _assignedMedic];
|
|
|
|
#endif
|