Tipping an npc off to a player's position

How do I alert an enemy npc to the player’s position, so it tries to attack them even if it can’t see the player?

well if it cant see them, it would just be shooting at walls

it would move into a position to where it could shoot the player

You would need to find a way to use gm_navigation.