Skip to content

five-on-it / packages/ai/src/arms / armNpc

Function: armNpc() ​

armNpc(sim, eid, weapon): void

Defined in: packages/ai/src/arms.ts:31

Puts a weapon (by its index in the table) and a full stack of its ammunition in an NPC's pockets, unless it already carries one; nothing for the fists.

Parameters ​

sim ​

SimWorld

eid ​

number

weapon ​

number

Returns ​

void