Allright.. i have problem with my npc characters sight detection. The engine works like this:
Player is less than 300 pixels from enemy --> Enemy starts to shoot sight detection objects.
Actual events:
Compare two general values: Sqr( ( X( "player hitbox" ) - X( "NPC Enemy hitbox" ) ) pow 2 + ( Y( "player hitbox" ) - Y( "NPC Enemy hitbox" ) ) pow 2 ) IS LESS THAN 300 ---> [Enemy]=Shoot "enemy sight object"
Now the enemy shoots sight objects but if there are several enemies, the enemy start to shoot "enemy sight objects" only when im close to one specific enemy. If im close to another enemy (identical active object) it wont.