Bug #16394

handleHeal doesn't work as expect

Added by Tankbuster over 6 years ago. Updated over 4 years ago.

Status:Assigned Start date:01/02/2011
Priority:Normal Due date:04/02/2011
Assignee:Dwarden % Done:


Category:Event Handlers
Target version:Upcoming version
Affected ArmA II version:1.60 BETA First affected build:
Reproduced by another DH user:Yes First affected ArmA II version:
I am using some Mods:No Single / Multi Player?:
I am using: BIForumURL:
Reproducible for you:Yes NGUrl:
Related to content of DLC: WIKIurl:


In multiplayer, the handleHeal EH only fires when a medic heals himself.

In other words, it only works locally.

medic_eh_test.Desert_E.pbo (2.8 kB) Sekra, 01/03/2011 14:10


Updated by Sekra over 6 years ago

init.sqf contains:

player addEventHandler ["HandleHeal", { _heli = "AH1Z" createVehicle (getPos tahan); }];

tahan is a helipad nearby.

What happens: When medic heals himself (tested in a dediserver and in editor), chopper is spawned. When medic heals anyone else, nothing happens
What is expected: When medic heals anyone including himself the chopper should spawn. 

So maybe create a new MPHandleHeal EH or make the EH trigger on the healer and not on the target so that the code is always ran locally. Or make an option to have the EH trigger either on the healer or the target.

Updated by Fireball over 6 years ago

  • Due date set to 01/16/2011
  • Status changed from New to Feedback
  • Reproduced by another DH user changed from Yes to No
  • Reproducible for you changed from No to Yes

Consider that you add the EH to the player - not to anyone else you heal. You might consider adding the EH to any unit you'd like to check for getting healed.

Please try that and provide feedback.

Updated by Tankbuster over 6 years ago

Done that FB.

The EH only fires when the medic heals himself.

Updated by Fireball over 6 years ago

  • Due date changed from 01/16/2011 to 04/02/2011
  • Status changed from Feedback to Assigned
  • Assignee set to Dwarden
  • Reproduced by another DH user changed from No to Yes

Alright, thx.

Updated by Dwarden over 5 years ago

  • Target version set to 1.60 BETA
  • Affected ArmA II version changed from 1.57.76815 to 1.60 BETA

this should be fixed and return data as in description of EH

Triggered when unit starts to heal (player using heal action or AI heals after being ordered).
If code returns false, engine side healing follows.
Passed array: [unit, healer, healercanheal]
unit: Object
healer: Object
healercanheal: Boolean - true when healer is corpsman

Updated by Dwarden over 5 years ago

  • Target version changed from 1.60 BETA to Upcoming version

Also available in: Atom PDF