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 167 commands...
Syntaxdespawn (<npc>|...)
Short DescriptionTemporarily despawns the linked NPC or a list of NPCs.
Full DescriptionThis command will temporarily despawn either the linked NPC or a list of other NPCs.
Despawning means they are no longer visible or interactable, but they still exist and can be respawned.
Related Tags<NPCTag.is_spawned> Returns whether the NPC is spawned.
Usage Example
#Use to despawn the linked NPC.
- despawn
Usage Example
#Use to despawn several NPCs.
- despawn <npc>|<player.selected_npc>|<[some_npc]>