five-on-it / packages/ai/src/arms / npcSlot
Function: npcSlot()
npcSlot(
sim,eid,weapon):number
Defined in: packages/ai/src/arms.ts:53
The slot an NPC selects: the one holding the weapon it shoots while it has ammunition for it; else one holding no weapon, so it fights with its fists.
Parameters
sim
eid
number
weapon
number
Returns
number