Jump to content

Recommended Posts

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

What's wrong with allowdamage?  Do you only want to disable damage from certain sources? 

  • Like 2

Share this post


Link to post
Share on other sites

Or disable damage in the unit's attributes, seeing as it's from the editor. 

  • Like 1

Share this post


Link to post
Share on other sites
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

Are you using mods and/or is the unit on which you disallow damage in a vehicle?

  • Like 1

Share this post


Link to post
Share on other sites
_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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×