Arma 3
Fully heal with ACE in Trigger
Need some help with setting a trigger to fully heal any player or AI who enters it using ACE advanced medical.
< >
Showing 1-7 of 7 comments
WastedMike [=MTRC=] Sep 28, 2017 @ 12:06am 
Nevermind, I got it to work. Just put this in the "on activation field"

[objNull, this] call ace_medical_fnc_treatmentAdvanced_fullHeal;
Roque_THE_GAMER Jan 17, 2020 @ 2:35pm 
Since this is one of the treads that show first on google this ACE was updated and the name changed:
now is called ace_medical_treatment_fnc_fullHeal
here is a exemple:
heal player:
[objNull, player] call ace_medical_treatment_fnc_fullHeal
heal unit in the init
[objNull, this] call ace_medical_treatment_fnc_fullHeal
Nacho AT Jan 21, 2020 @ 10:56am 
Originally posted by Roque_THE_GAMER:
Since this is one of the treads that show first on google this ACE was updated and the name changed:
now is called ace_medical_treatment_fnc_fullHeal
here is a exemple:
heal player:
[objNull, player] call ace_medical_treatment_fnc_fullHeal
heal unit in the init
[objNull, this] call ace_medical_treatment_fnc_fullHeal

Thanks for this, but this actually heals everyone in the server, do you know how to make so it only heals the person activating the trigger?
Last edited by Nacho AT; Jan 21, 2020 @ 6:06pm
Grovesy Feb 7, 2020 @ 7:05pm 
{ [objNull, _x] call ace_medical_treatment_fnc_fullHeal } forEach in thisList

May work?
Whilburg Apr 24, 2020 @ 11:07pm 
Originally posted by Grovesy:
{ [objNull, _x] call ace_medical_treatment_fnc_fullHeal } forEach in thisList

May work?
You don't need the "in", so it would just be:

{[objNull, _x] call ace_medical_treatment_fnc_fullHeal} forEach thisList

Otherwise, it works like a charm.
Cochonnes Apr 26, 2020 @ 3:10am 
i am using an "addAction" to call it, put the following in the "initPlayerlocal.sqf" : healplayer = player addAction ["<t color='#0ac6d2'>Heilen</t>", "heal\heal.sqf"];
and in "heal.sqf" :
[objNull, player] call ace_medical_fnc_treatmentAdvanced_fullHealLocal;
Whilburg Apr 26, 2020 @ 12:51pm 
I'm not sure if this actually matters, but the 'l' in initPlayerLocal, needs to be capitalized.

inside of "heal.sqf" you need:
[objNull, player] call ace_medical_treatment_fnc_fullHeal;
instead of what you have.

I assume this is a singleplayer mission, but if it isn't, you may want to add the condition:
"((_target distance _this) <0.1)"
this will allow everyone except the person it is executed on to use it

Also it wont work after you die if you have respawns, to fix just put the code in initPlayerLocal.sqf inside onPlayerRespawn.sqf

Hope this helps.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Sep 27, 2017 @ 11:59pm
Posts: 7