Skip to content

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

Function: cookGrenade() ​

cookGrenade(sim, eid, held, distance): void

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

The grenade in the hand: the trigger pulls the pin and starts the fuse; letting go throws it where the cursor is (a 30° lob to distance, at most 50 m) with what is left of the fuse; held past the fuse it goes off in the hand.

Parameters ​

sim ​

SimWorld

eid ​

number

held ​

boolean

distance ​

number

Returns ​

void