Is it possible to set up a unit so it can collide with other ground units, but not collide with other units of the same type?
Example: Let's say the Dark Templar have this feature. Any Dark Templars can walk through each other, but will collide with marines, zerglings, zealots, etc.
i've done something similar which may work for you
i made a behavior. with the modify flag "Suppress Collision"
this makes it path through other units but not terrain or buildings.
you can then create a validator which checks the unit's radius for other units. if a unit type other than the desired unit is inside that radius the behavior becomes disabled and collision is restored.
you'd probably have to use 2x validators and a combine validator to get the exact desired effect.
It works well apart from that the units will always attempt to path directly through units before figuring out that they collided and suddenly need to find a new path to their desination.
I simply set the all the Radius fields to 0, this means that the units can path through each other but have to path around anything with a collision radius. It means that any unit with a radius of 0 will be able to path through each other (as opposed to confining the effect to just one type), but...
Is it possible to set up a unit so it can collide with other ground units, but not collide with other units of the same type?
Example: Let's say the Dark Templar have this feature. Any Dark Templars can walk through each other, but will collide with marines, zerglings, zealots, etc.
@Builder_Bob: Go
i've done something similar which may work for you
i made a behavior. with the modify flag "Suppress Collision" this makes it path through other units but not terrain or buildings. you can then create a validator which checks the unit's radius for other units. if a unit type other than the desired unit is inside that radius the behavior becomes disabled and collision is restored.
you'd probably have to use 2x validators and a combine validator to get the exact desired effect.
Thanks, I'll try it and see how it works.
It works well apart from that the units will always attempt to path directly through units before figuring out that they collided and suddenly need to find a new path to their desination.
Is there another way to avoid that behavior?
I simply set the all the Radius fields to 0, this means that the units can path through each other but have to path around anything with a collision radius. It means that any unit with a radius of 0 will be able to path through each other (as opposed to confining the effect to just one type), but...
@RCIX: Go
I tried setting radius to 0 (tested with marine with every other fields set to default). That made the unit pass through everything except buildings
bump