#(riches) How to specify the bounds of a NPC's WanderTrait. (API)

23 messages · Page 1 of 1 (latest)

quartz zenith
#

Hello! I am using the Citizens and Sentinel API, and I have a few NPCs which I would like to roam around, but not go outside of a specified region. I couldn't find anything on this in the Citizens Wiki, and for good measure I also checked the Sentinel Wiki. It is very possible that I missed it, but is there an argument or something I am missing to force the limited range?

Thanks,
riches.exe

stoic zephyrBOT
#

(riches) How to specify the bounds of a NPC's WanderTrait. (API)

stoic zephyrBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

rancid swift
#

Yes, it uses the phtree api - regions are defined by a cuboid around entries in the phtree

quartz zenith
rancid swift
slate narwhalBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@quartz zenith

quartz zenith
rancid swift
#

@quartz zenith are you using WanderGoal or the WanderWaypointProvider?

quartz zenith
#

WanderWaypointProvider

#

oh wait, its just waypointProvider.get()

rancid swift
#

use addRegionCentre

slate narwhalBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@quartz zenith

quartz zenith
#

alright, thank you 🙂