I was wondering if there was anyway to detect if a moving NPC touches a player, or is a certain distance from a player so that the NPC can carry out something.
ie.
A moving NPC touches the player and their health is reduced.
If anyone could guide me towards how you would go about doing this it would be appreciated.
