Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Rosso777

CfgInteractionMenu - Buddy Aid

Recommended Posts

I am trying to add an action so that when you are looking at another player who has 50% hp, you can use a first aid kit to heal them. I can get the action to call correctly if I set the condition to "true", but for some reason, the way I have set these conditions is not working. Can anyone see why?

 

class BuddyAid: ExileAbstractAction
            {
                title = "First Aid";
                condition = "((ExileClientInteractionObject getVariable [damage player > 0.1]) && (magazines player find 'FirstAidKit' >= 1))";
                action = "_this call Bones_fnc_HealTarget";
            };

Share this post


Link to post
Share on other sites

the getVariable in condition is wrong

Share this post


Link to post
Share on other sites

  condition = "((ExileClientInteractionObject getVariable (damage > 0.1]) && (magazines player find 'FirstAidKit' >= 1))";  ?

I am having a helluva time trying to find a clear thread about getting the player's damage values.

Share this post


Link to post
Share on other sites
7 minutes ago, Jackal326 said:

Would it not be easier to simply make the player character a medic with the setUnitTrait command?

 

I am running an Exile server, not sure where I would implement that. It sounds like a much easier avenue, though. Is that something I can add to mission file's init.sqf and then it will apply to all players?

Share this post


Link to post
Share on other sites

×