kwiatek_999 0 Posted May 26, 2021 Is there any no damage script (like allowDamage false but when something near explode i will survive)? Because I want to test my mission in editor. Share this post Link to post Share on other sites
stanhope 412 Posted May 26, 2021 What's wrong with allowdamage? Do you only want to disable damage from certain sources? 2 Share this post Link to post Share on other sites
beno_83au 1369 Posted May 26, 2021 Or disable damage in the unit's attributes, seeing as it's from the editor. 1 Share this post Link to post Share on other sites
kwiatek_999 0 Posted May 27, 2021 14 hours ago, stanhope said: What's wrong with allowdamage? Do you only want to disable damage from certain sources? allowdamage doesen't protect against exploxions. I need script that will protect against gunfire and explosions Share this post Link to post Share on other sites
stanhope 412 Posted May 27, 2021 Are you using mods and/or is the unit on which you disallow damage in a vehicle? 1 Share this post Link to post Share on other sites
haleks 8212 Posted May 27, 2021 _unit addEventHandler ["HandleDamage", {0}]; _unit addEventHandler ["GetInMan", { params ["_unit", "_role", "_vehicle", "_turret"]; _vehicle addEventHandler ["HandleDamage", {0}] }]; Share this post Link to post Share on other sites