Jump to content
Sign in to follow this  
Ionflux

Heal

Recommended Posts

Hey guys, is there another way to heal without the field hospital or medic, lets say I want to heal at a crate for instance, is there a script that will allow me to do that?

Thanks in advance

Ionflux

Share this post


Link to post
Share on other sites

Here is a really basic script (heal the player, hint that he's been healed).

Let me know if you need anything more advanced wink_o.gif

Put this into the object's init line:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

this addAction ["Heal yourself", "heal.sqf"];

heal.sqf

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_caller = _this select 1; //Get the name of the unit that executed the script

_caller setDamage 0; //Set damage of the unit

hint "You have been healed"; //Hint for the healed player

Share this post


Link to post
Share on other sites

Have you tried "setDammage X" with X being a number lower than the unit's current damage value?

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
Sign in to follow this  

×