Jump to content
Sign in to follow this  
redarmy

disable tyre damage

Recommended Posts

Iv searched the forums,nothing comes up.

The affect im looking for is to disable damage on veihicle tyres.Is there a universal command for this that i can attatch to a veihicles init line?

Share this post


Link to post
Share on other sites
Iv searched the forums,nothing comes up.

The affect im looking for is to disable damage on veihicle tyres.Is there a universal command for this that i can attatch to a veihicles init line?

put this in the vehicle's init. It will stop all damage but will not protect the occupants.

this allowdamage false

Share this post


Link to post
Share on other sites
put this in the vehicle's init. It will stop all damage but will not protect the occupants.

this allowdamage false

Thanks mate but im really only looking to make sure the tyres remain intact,the veihicle needs to be destroyed later or even during.So i cant just use that then follow it up with allow damge true.

Need only the tyres to take no damage

Share this post


Link to post
Share on other sites
HandleDamage EH may suit your needs.

Thanks jshock,

im aware of event handler iv used it for simulating double veihicle armour so to speak,but im lost as to how to apply it to the wheels of particular veihicle

Share this post


Link to post
Share on other sites

I was thinking the second resulting parameter of HandleDamage (selection) would return the hit point of the vehicle, which could be a tire, but I'm not too sure what that parameter returns, but then it's just an if statment with setDamage 0 on that part being (_this select 1). Just guessing though.

Share this post


Link to post
Share on other sites

You could use the HitPart event handler, as it returns the selection that took damage (_this select 5). Problem with it is that it only fires on the shooter's machine.

Share this post


Link to post
Share on other sites

tested with my vehicle diagnostic tool:

this addEventHandler ["HandleDamage",
{
if ((_this select 1) find "wheel" != -1) then
{
	0;
}else
{
	(_this select 2);
};
}];

Share this post


Link to post
Share on other sites
tested with my vehicle diagnostic tool:

this addEventHandler ["HandleDamage",
{
if ((_this select 1) find "wheel" != -1) then
{
	0;
}else
{
	(_this select 2);
};
}];

WHEEL!!! thats it!trying tire all day,wheres my head at.

Thanks man thats super!!

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  

×