I want to program my monsters to do different attacks based on how far away the player is. For example, a sniper would use their sniper rifle if the player is far away, but would chase and melee the player if they are closer.
So, is there a function that checks the player's distance from the actor?
