Jump to content
Djoutlowd

Healing script help

Recommended Posts

I have been getting into arma 3 scripting lately and i made a simple script the other day but i had an idea to improve it but i don't know how. The script is

 

This addaction ["heal","setdamage 0"]

 

It gives your player a scroll wheel to heal your player and other players. It is gonna be used with in my current arma 3 milsim unit.

It gets annoying when its all ways in your scroll wheel menu or when you look at someone else so i would like to change it so it will only so up for you or anyone else if they are injured.

 

Thanks for reading,

 

-SSg. R. Austin [104th]

 

Enclosure

Teamspeak: 4ts.4thrrs.co.uk:27022

Website: 104thidru.enjin.com

Share this post


Link to post
Share on other sites

For future reference, this thread would more properly belong here.

But to answer your question:

this addAction
[	
    "Heal",	
    {		
        (_this select 0) setDamage 0;	
    },	
    nil,	
     6,	
    true,
    true,	
    "",	
    "damage _target > 0.1"]
;
Should only present when the player has greater than 10% damage.

Share this post


Link to post
Share on other sites

For future reference, this thread would more properly belong here.

 

But to answer your question:

this addAction
[
	"Heal",
	{
		(_this select 0) setDamage 0;
	},
	nil,
	6,
	true,
	true,
	"",
	"_target damage > 0.1"
];

Should only present when the player has greater than 10% damage.

My bad for posting in the wrong spot, and thanks man. :)

Share this post


Link to post
Share on other sites

This is my bad, but in the condition of the action you need to flip "_target" and "damage", fixed above, that's what I get for trying to type too fast :P.

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

×