ChristianWiele
Active member
Hi,
I have an ability (flying a bird) that uses the DetectObjectAbilityBase with a trigger. While the ability is active, the character is within the trigger collider. Now, if the character dies while the ability is active, the ability is stopped, and the character is respawned outside the trigger. But the OnTriggerExit method of the DetectObjectAbilityBase class is never called. As a result, the m_DetectedTriggerObjectsCount/m_DetectedTriggerObjects[] is not reset, and I can start the ability even the character is not within the trigger.
Regards, Christian
I have an ability (flying a bird) that uses the DetectObjectAbilityBase with a trigger. While the ability is active, the character is within the trigger collider. Now, if the character dies while the ability is active, the ability is stopped, and the character is respawned outside the trigger. But the OnTriggerExit method of the DetectObjectAbilityBase class is never called. As a result, the m_DetectedTriggerObjectsCount/m_DetectedTriggerObjects[] is not reset, and I can start the ability even the character is not within the trigger.
Regards, Christian