"the npc should only be able to attack the door/player if it is within attack range (5)"