Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameDisengage
Syntaxdisengage (player)
Short DescriptionEnables an NPCs triggers that have been temporarily disabled by the engage command.
Full DescriptionRe-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 Command:Engage
Related Tags<NPCTag.engaged> Returns whether the NPC is currently engaged. (...)
Usage Example
# Use to reenable an NPC's triggers, disabled via 'engage'.
- engage
- chat 'Be right there!'
- walk <player.location>
- wait 5s
- disengage
Groupnpc
RequiresCitizens
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/npc/DisengageCommand.java#L19