I’m trying to make a control point in my game. I basically want when a unit from whatever faction enters the number for their faction rises. Or when they leave the number goes down.
However the issue I’m having is when the unit is killed in the control point. Since they don’t trigger the OnTriggerExit in my script. Does anyone know away for my script to know when a unit is destroyed and remove a value from the counter?
Sadly lists are beyond my understanding, however I did a cheap way. I have it so when the gameobject enters the area they spawn a counter. And every few seconds the counter drops a point that when the collider picks up it adds to the control point.