@Superku I tried ur way, but how the NPC will have its own 'target1' pointer set to the detected entity ??

@jane Your method doesn't help because all allies must be identical, only their 'target1' pointer must be set to the entity detected by their event.

@MrGuest I could be wrong, but I think you haven't understood the problem. The Ally entity has its LOCAL pointer called target1 which must point to the entity detected by the "detect_target()" event.