ifpdistl <number>
Checks if the actor's distance to the player is less than <number>. Also see ifpdistg.