Name | Engage |
Syntax | engage (<duration>) (player) |
Short Description | Temporarily disables an NPCs toggled interact script-container triggers. |
Full Description | Engaging an NPC will temporarily disable any interact script-container triggers.
To reverse this behavior, use either the disengage command, or specify a duration in which the engage should timeout. Specifying an engage without a duration will render the NPC engaged until a disengage is used on the NPC. Engaging an NPC by default affects all players attempting to interact with the NPC. You can optionally specify 'player' to only affect the linked player. While engaged, all triggers and actions associated with triggers will not 'fire', except the 'on unavailable' assignment script-container action, which will fire for triggers that were enabled previous to the engage command. Engage can be useful when NPCs are carrying out a task that shouldn't be interrupted, or to provide a good way to avoid accidental 'retrigger'. See Disengage |
Related Tags | <NPCTag.engaged> Returns whether the NPC is currently engaged. (...)
|
Usage Example |
|
Usage Example |
|
Group | npc |
Requires | Citizens |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/npc/EngageCommand.java#L30 |