The Proximity Trigger is used to execute a script when a player moves within a certain radius of a location. If the radius are not specified, then the default for entry, exit, and move is 5 blocks.
Example Interact Script Usage:
This script will execute a script when the player walks within 5 blocks of the NPC that this trigger is assigned to and they were not previously within the 5 block range. It will also execute a script when the player walks outside of a 10 block radius of the NPC when they were not previously outside the 10 block radius.
Proximity Trigger:
Entry Radius: 5
Exit Radius: 10
Entry:
Script:
- CHAT "Hello ! Welcome to my shop!"
Exit:
Script:
- CHAT "Thanks for visiting "
Move:
Script:
- CHAT "Stop pacing !"
Example Action Usage:
Entering and exiting NPC proximities will also trigger a couple of Actions that can be utilized. If no Actions are present in the NPC Assignment Script, no action will be taken. Normal cooldown and radius conditions apply.
Actions:
On Enter Proximity:
- ...
Actions:
On Exit Proximity:
- ...
On Move Proximity:
- ...
@author dbixler, aufdemrand