Download

Trace for another Trace

I’d like the melee attack traces in my game to be able to hit each other so I can implement an attack priority system. How can I have my traces see if they have hit another trace?

Thanks!

Don’t use traces, use OnHit or Begin/EndOverlap Events from shape components.

I will look into it.
One thing I really like about traces is that it returns all of the hits as an array. Overlaps events are triggered multiple times, which could be put into an array but then I would have to wait until the next frame to sort through this array, which is no bueno for a fighting game. Is there a way around this?