Skip to content

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

Function: heldWeapon() ​

heldWeapon(sim, eid): number

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

The weapon a character holds: weaponHeldAt with its selected slot, seated or not; at a water jet's controls (jets.ts) or a sonic cannon's (sonic.ts) the fists, its trigger the jet's or the cannon's.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

number