🎭NPCs
Table to work with NPC list.
Count(): integer
integer
Return size of NPC list.
Name
Type
Description
index
integer
Index of NPC in cheat list.
Return NPC by index in cheat list. Not the same as in-game index.
Name
Type
Description
filter [?]
(default: nil)
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.
Example
Name
Type
Description
pos
Position to check.
radius
number
Radius to check.
teamNum
Team number to check.
teamType
Team type to filter by. Relative to teamNum param.
Return all NPCs in radius.
Contains(npc: CNPC
): boolean
CNPC
): boolean
Name
Type
Description
npc
NPC to check.
Check NPC in cheat list.
Last updated