Jump to content

Recommended Posts

How would i stop my player from being able to heal damaged players around me from the scroll menu /or atleast detect when a player is healing another player

Share this post


Link to post
Share on other sites
11 hours ago, dyrmoon said:

You can use eventhandler HandleHeal for detect who healing:

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleHeal

 

 

3
3

Are you able to show me an example which works, i'm unable to get it to work

For example
 player addEventHandler ["HandleHeal", {
    params ["_unit", "_healer", "_isMedic"];
    _healer setdamage 1;
}]; // Doesn't work

Share this post


Link to post
Share on other sites
7 hours ago, bumyplum said:

Are you able to show me an example which works, i'm unable to get it to work

For example
 player addEventHandler ["HandleHeal", {
    params ["_unit", "_healer", "_isMedic"];
    _healer setdamage 1;
}]; // Doesn't work

 

What do you want the unit to die for?

You must place this eventhandler in the Init to all units that can will be injured. So not only player.

this addEventHandler ["HandleHeal", {
    params ["_unit", "_healer", "_isMedic"];
    Hint str _this;// for info who is who
}];

 

Share this post


Link to post
Share on other sites
On 3/4/2019 at 8:52 PM, dyrmoon said:

 

What do you want the unit to die for?

You must place this eventhandler in the Init to all units that can will be injured. So not only player.


this addEventHandler ["HandleHeal", {
    params ["_unit", "_healer", "_isMedic"];
    Hint str _this;// for info who is who
}];

 

It was just a place holder to test if it would work

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×