detect npc location
- hmmcrunchy
- New
- Posts: 7
- Joined: November 2nd, 2016, 12:50 am
- Location: UK
- Contact:
detect npc location
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
If they are you can zap to a subroutine if not they zap to another routine

[url]http://www.byte.org.uk[/url]
- mcmonkey
- Site Admin
- Posts: 299
- Joined: August 5th, 2016, 7:27 pm
- Location: Los Angeles, California, USA
- Contact:
Re: detect npc location
(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.Denizen lead developer. On Discord as
mcmonkey#6666
.- hmmcrunchy
- New
- Posts: 7
- Joined: November 2nd, 2016, 12:50 am
- Location: UK
- Contact:
Re: detect npc location
(thanks)
fantastic once again thank you.
if you are interested I'm doing characters that say different things if at home to at their shops
fantastic once again thank you.
if you are interested I'm doing characters that say different things if at home to at their shops

[url]http://www.byte.org.uk[/url]
Who is online
Users browsing this forum: No registered users and 1 guest