ACE3/addons/medical_ai/functions/fnc_requestMedic.sqf
BaerMitUmlaut 278e7fa800 Add Medical AI implementation for basic medical (#4311)
* Initial commit medical AI

* Finished non-healing functions

* Initial work on self healin

* AI healing

* Finished medical AI for basic medical

* Finito

* Fix for dead units, medic not being close enough

* Make ace_medical required

* Fixed double systemChat

* Made AI units able to heal players

* Fixed wound treatment

* Fixed medic movement

* Made units heal themselves earlier
2016-09-04 11:25:03 +02:00

23 lines
539 B
Plaintext

/*
* Author: BaerMitUmlaut
* Sends a request to the units assigned medic to heal it.
*
* Arguments:
* None
*
* Return Value:
* Nothing
*
* Public: No
*/
#include "script_component.hpp"
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