Alert23 215 Posted December 24, 2019 hi everyone, so i know that there are many scripts out there which can simulate what i try but somehow for what reason ever (at least i dont understand 🤷♂️), the scripts are not 100% preventing vehicle/unit from getting destroyed/killed. im trying to stop the damage of a vehicle/unit at 0.9 so i can execute a custom MissionFailed.sqf if the vehicle/unit has 0.9 damage letting him then decide wheter to continue or quit the mission. this is what im using right now sometimes it does work but then sometimes not. SARO_global_damage = 0; d = vehicle player addEventHandler ["handleDamage", { _dmg = _this select 2; SARO_global_damage = SARO_global_damage + ( _dmg - SARO_global_damage) * 0.02; if (SARO_global_damage > 0.9) then {0.9} else {SARO_global_damage}; }]; is there a way to 100% ensure the vehicle/unit from getting destroyed/killed? Share this post Link to post Share on other sites
VulturARG 5 Posted December 30, 2019 I don't know about your script. I used to put the damage to 0.9 in an ambush. The vehicles caught fire and exploded in a short time. Try changing the value 0.9 to 0.8 to see if it solves your problem 1 Share this post Link to post Share on other sites