Hey all,
I’ve got a cube sticking out of each player. I’m trying to detect all other players) within that cube when a melee swing occurs.
I have the melee swing hooked up, and I have the object retrieved in my script:
var meleeVolume = shooter.transform.FindChild("MeleeDamageVolume");
The MeleeDamageVolume has a Box Collider, and has the Is Trigger flag set to true.
I’m not sure of the pattern, but I believe it should be possible to detect other players within this cube fairly easily.
Any advice would be much appreciated.
Edit: I have hooked up a script to this collider and am using the events for enter/exit triggers. It’s detecting it at very weird times… like just when running around my map with nothing in front of me, and it hardly ever detects another player standing in front of me (although sometimes it does, but then once it does it doesn’t call the exit event when i move away from that player).