detect npc location

hmmcrunchy

Member
Nov 2, 2016
7
0
0
UK
www.byte.org.uk
Is it possible to check during chat with an NPC if the NPC is within a certain distance of a point.

If they are you can zap to a subroutine if not they zap to another routine
 

mcmonkey

Administrator
Staff member
Helper
(Topic moved to correct location)

- if <npc.location.distance[<npc.anchor[farPoint]>]> < 10 { will pass if the NPC is within 10 blocks of 'farPoint' anchor. Swap variables and tags freely to whatever you need. The location.distance[...] bit is the key.