Land Units Collison Box Issue
-
Could anyone help me? (I have a mod called Research FAF)
I need land units, hundreds of them, run through each other, without any collision box problem, but still could be targeted, SetCollisionShape('None') has no collision problem, but enemy units don't fight any more. Like MA28AI, the air units hold still in one point without any collision issue, how to do that? Thank you in advance! -
@Jip, @BlackYps or @Ctrl-K might know the answer here. Or since M28 was mentioned, @maudlin27
-
I'm not sure if what the author wants is possible. I've not toyed with this type of behavior, I can't help without spending time on it myself.
-
I interpreted the reference to M28 as being that they wanted it possible to stack land units ontop of each other a bit like how M28 might with its air units; but either way it’s not something I know the answer to
-
Thank you for all of you, my friend told me to turn Land units to Air units, so I tried if bp.Categories then table.insert(bp.Categories, 'AIR') end, now all land units has AIR features, and the results seems fine for me. At the first beginning I need the effect like Fatboy, it runs through any buildings without any collision issue.
-
I was going to suggest making the hitbox really small and replacing it with an entity that has the correct size and passes the collision check to the unit but I didn't know that the air category disables collisions.
-
@Nomander That was almost the same idea as mine before. I turn land units collision box off and resume it once encounter with enemy . but seemed not good for game performance.