Jump to content
Sign in to follow this  
ZZEZ

Making a vehicle immune to IED?

Recommended Posts

I searched but no luck, I want a certain vehicle controlled by the players to be immune to IEDs[along with the players inside, obviously] but not immune to other stuff like RPG, how would I do it?any ideas?

Share this post


Link to post
Share on other sites

handleDamage eventhandler which filters out damage source?

Share this post


Link to post
Share on other sites

Yes, use handleDamage, like this:

this addeventhandler ["handleDamage",{  
if ((_this select 4) == "PipeBomb") then {
	hint "The pipebombs, they do nothing!.";
}  
else {_this select 2};
}];

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  

×