Skip to content

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

Function: canFire() ​

canFire(sim, eid, aim?): boolean

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

Whether a character may fire the weapon it holds now: with ammunition for it left in its inventory; on foot unless hidden behind cover; from inside a car only with the pistol selected, and only aiming into the front half-circle of the car (fireBlock).

Parameters ​

sim ​

SimWorld

eid ​

number

aim? ​

number = ...

Returns ​

boolean