Ionflux 0 Posted November 3, 2008 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
Deadfast 43 Posted November 3, 2008 Here is a really basic script (heal the player, hint that he's been healed). Let me know if you need anything more advanced 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
Namikaze 0 Posted November 3, 2008 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
Ionflux 0 Posted November 3, 2008 Thanks mate, works like a charm Share this post Link to post Share on other sites