Page MenuHomeFeedback Tracker

HandleHeal doesn't trigger when commanding unit to heal at a vehicle
Closed, ResolvedPublic

Description

Tested on B_Truck_01_medical_F, which has attendant = 1;.
Injure unit, then tell them to heal themselves via the commanding menu at the truck. Unit heals themselves without triggering HandleHeal.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

All the service command and EHs don't trigger when a unit heals at a vehicle (which is expected, as it isn't rearm, refuel or repair).

Event Timeline

johnb43 created this task.Jul 25 2024, 12:24 PM
johnb43 added a comment.EditedJul 25 2024, 5:34 PM

AISFinishHeal doesn't work in this case at all. I have found that resetting their animation finishes the action and heals them:

[{"dnon_medic" in animationState (_this select 0)}, {
    [_this select 0, _this select 1, 2] call ace_common_fnc_doAnimation;
}, [cursorTarget, cursorTarget call ace_common_fnc_getDefaultAnim], 5] call CBA_fnc_waitUntilAndExecute;

EDIT: It ignores the healing condition for not being in water too.

BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedJul 25 2024, 11:59 PM

How do you order unit to heal themselves from vehicle, all I get is 'treat self' and that works fine when you order it and unit uses medkit, triggers handle heal

BIS_fnc_KK changed the task status from New to Need More Info.Jul 26 2024, 12:00 AM
TRAGER added a subscriber: TRAGER.Jul 26 2024, 1:58 AM

How do you order unit to heal themselves from vehicle, all I get is 'treat self' and that works fine when you order it and unit uses medkit, triggers handle heal

Spawn HEMTT Medical and injured subordinate in your team, order to heal themselves from vehicle:
F2 → 6 → Treat at HEMTT Medical
(or download this repro scenario)


systemChat message in HandleHeal did not work, on success there will be a message

BIS_fnc_KK set Ref Ticket to AIII-56539.

Revision: 152061

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jul 31 2024, 12:00 AM
BIS_fnc_KK changed the task status from Need More Info to Feedback.

As far as I have been able to test in 2.17.152062, this now works as advertised.

Thank you very much!

BIS_fnc_KK closed this task as Resolved.Aug 10 2024, 8:44 PM