ACE3/addons/medical_ai/functions/fnc_requestMedic.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

26 lines
594 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: BaerMitUmlaut
* Sends a request to the units assigned medic to heal it.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ACE_medical_ai_fnc_requestMedic
*
* Public: No
*/
private _assignedMedic = _this getVariable QGVAR(assignedMedic);
private _healQueue = _assignedMedic getVariable [QGVAR(healQueue), []];
_healQueue pushBack _this;
_assignedMedic setVariable [QGVAR(healQueue), _healQueue];
#ifdef DEBUG_MODE_FULL
systemChat format ["%1 requested %2 for medical treatment", _this, _assignedMedic];
#endif