mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
587 B
Plaintext
28 lines
587 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: LinkIsGrim
|
|
* Intercepts group heal attempts and replaces items
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_medical_engine_fnc_commandChanged
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_group", "_newCommand"];
|
|
|
|
if (!local _group) exitWith {};
|
|
if !(_newCommand in ["HEAL", "HEAL SOLDIER", "PATCH SOLDIER", "FIRST AID", "HEAL SELF", "SUPPORT"]) exitWith {};
|
|
|
|
{
|
|
_x call EFUNC(common,replaceRegisteredItems);
|
|
if (!unitReady _x) then {
|
|
[_x] joinSilent (leader _group)
|
|
};
|
|
} forEach (units _group);
|