Currently there seems to be an issue with the SCR_AIGroupPerception class, as the Event_OnEnemyDetected does not always get invoked when a target gets detected.
Following issue:
- Player shoots at AI that has not yet detected them
- Players' shot gets added via SCR_AIGroupPerception::AddOrUpdateGunshot method
- Player (inside method IEntity is called shooter) is now added to m_aTargets and m_aTargetEntities (keep in mind, no Events invoked)
- AI turns in direction of player and spots them
- AI identifies player as Enemy
- SCR_AIGroupPerception::UpdateTargetsFromMembers updates the targets with DETECTED and ENEMY Target Category
- Player is now ENEMY, used to be DETECTED, but no Event is invoked