Name | Disengage |
Syntax | disengage (player) |
Short Description | Enables an NPCs triggers that have been temporarily disabled by the engage command. |
Full Description | Re-enables any toggled triggers that have been disabled by disengage.
Using disengage inside scripts must have an NPC to reference, or one may be specified by supplying a valid NPCTag object with the npc argument. 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. This is mostly regarded as an 'interact script command', though it may be used inside other script types. This is because disengage works with the trigger system, which is an interact script-container feature. NPCs that are interacted with while engaged will fire an 'on unavailable' assignment script-container action. See Engage |
Related Tags | <NPCTag.engaged> Returns whether the NPC is currently engaged. (...)
|
Usage Example |
|
Group | npc |
Requires | Citizens |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/npc/DisengageCommand.java#L19 |