(Official) LUA Scripting Documentation
set_npc_state_region
Set the state of all NPCs in a cubic region.
Spec:
set_npc_state_region(
string state,
long x1,
long y1,
long z1,
long x2,
long y2,
long z2,
string npc_type)
Parameters
state:x1: The x component of the regions min map pointy1: The y component of the regions min map pointz1: The z component of the regions min map pointx2: The x component of the regions max map pointy2: The y component of the regions max map pointz2: The z component of the regions max map pointnpc_type: Only apply to these types of NPCs. Omit to apply to all types of NPCs
Valid values for state: “alive”, “dying”, “death”, “respawning”, “respawn”, “despawning”, “despawn”, “sleeping”, “sleep”, “custom”, “inactive”, “delete”
Incomplete
This documentation is incomplete