mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
cb3c18c2fb
Header fixes for medical AI
26 lines
516 B
Plaintext
26 lines
516 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: BaerMitUmlaut
|
|
* Makes the unit heal itself.
|
|
*
|
|
* Arguments:
|
|
* Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* cursorObject call ace_medical_ai_fnc_healSelf
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
// Player will have to do this manually of course
|
|
if ([_this] call EFUNC(common,isPlayer)) exitWith {};
|
|
// Can't heal self when unconscious
|
|
if IS_UNCONSCIOUS(_this) exitWith {
|
|
_this setVariable [QGVAR(currentTreatment), nil];
|
|
};
|
|
|
|
[_this, _this] call FUNC(healingLogic);
|