mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
278e7fa800
* 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
16 lines
330 B
Plaintext
16 lines
330 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Checks if a unit is currently considered safe enough to treat itself.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Is unit safe enough <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
(getSuppression _this == 0) && {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30}
|