🎭NPCs
Last updated
Last updated
integer
Return size of NPC list.
Name | Type | Description |
---|---|---|
Return NPC by index in cheat list. Not the same as in-game index.
Name | Type | Description |
---|---|---|
Return all NPCs in cheat list. Can be filtered by unit type or custom function. Unit type filter is a much faster than custom function and can be or'ed to filter multiple types.
Return all NPCs in radius.
CNPC
): boolean
Check NPC in cheat list.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
index
integer
Index of NPC in cheat list.
filter [?]
Enum.UnitTypeFlags
|fun(npc: CNPC):boolean
(default: nil)
pos
Position to check.
radius
number
Radius to check.
teamNum
Team number to check.
teamType
Team type to filter by. Relative to teamNum param.
npc
NPC to check.