Jump to content
draoth

I'm looking for a way to disable vehicle death match

Recommended Posts

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

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).

  • Like 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

×