Skip to content

five-on-it / packages/sim/src/weapons / weaponSlot

Function: weaponSlot() ​

weaponSlot(sim, eid, weapon): number

Defined in: packages/sim/src/weapons.ts:255

The first slot of a character's inventory holding a weapon (by its index in the table), or -1.

Parameters ​

sim ​

SimWorld

eid ​

number

weapon ​

number

Returns ​

number