draoth 13 Posted May 30, 2021 Is there a way to disable vehicles from doing damage by driving over units? Thanks. Share this post Link to post Share on other sites
stanhope 409 Posted May 31, 2021 I guess with the handle damage event handler? 2 Share this post Link to post Share on other sites
JohnKalo 657 Posted May 31, 2021 https://steamcommunity.com/sharedfiles/filedetails/?id=2492941015&searchtext= Share this post Link to post Share on other sites
pierremgi 4738 Posted May 31, 2021 this addEventHandler ["handleDamage", { params ["_unit","","_damage","_source","_proj"]; if (objectParent _source isKindOf "landVehicle" && isNull objectParent _unit && _proj isEqualTo "") then {0} else {_dam} }]; If I remember, you can't avoid collision for multiple vehicles against multiple units. The disableCollisionWith has a weir behavior when you test it like this: in init field of some units (infantry) : 0 = this spawn {waitUntil {!isNull player}; _this disableCollisionWith vehicle player}; // works for all concerned units and the unique vehicle player 0 = this spawn { {_this disableCollisionWith _x} forEach vehicles}; // doesn't work Regardless of locality (SP preview). 2 Share this post Link to post Share on other sites