Name of weapon when taking damage

Justin

Administrator
Staff member
The attackerObject within the OnObjectImpact event is a reference to the object that caused the damage.

 

EVG

Member
This works if you hang a script with an event on the collider. But what to do when there are a lot of hitboxes? Weigh in every collider script with catching events?
hbc.png
 

Justin

Administrator
Staff member
To determine what collider was hit you can use the hitCollider parameter. You will need to create a script that subscribes to the OnObjectImpact event.
 
Top