(Official) LUA Scripting Documentation
get_npc_count_in_region
Get the total number of NPCs currently positioned inside a cubic region.
Spec:
get_npc_count_in_region(
long x1,
long y1,
long z1,
long x2,
long y2,
long z2,
string npc_type)
Parameters
x1
: The x component of the regions min world pointy1
: The y component of the regions min world pointz1
: The z component of the regions min world pointx2
: The x component of the regions max world pointy2
: The y component of the regions max world pointz2
: The z component of the regions max world pointnpc_type
: The type of NPC to count. Omit to count all NPCs
Returns
long
: The count of NPCs
Incomplete
This documentation is incomplete