redarmy 422 Posted December 22, 2014 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
alky_lee 279 Posted December 22, 2014 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
redarmy 422 Posted December 22, 2014 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
jshock 513 Posted December 22, 2014 HandleDamage EH may suit your needs. Share this post Link to post Share on other sites
redarmy 422 Posted December 22, 2014 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
jshock 513 Posted December 22, 2014 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
austin_medic 109 Posted December 22, 2014 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
dreadedentity 278 Posted December 23, 2014 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
redarmy 422 Posted December 23, 2014 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
dreadedentity 278 Posted December 23, 2014 Thanks man thats super!! anytime Share this post Link to post Share on other sites