Skip to content

five-on-it / packages/sim/src/ordnance / flashAt

Function: flashAt() ​

flashAt(sim, at, owner, weapon): void

Defined in: packages/sim/src/ordnance.ts:116

A flashbang going off at at (see the module documentation): its burst's event, then each person on foot it reaches with a clear line (no wall, no smoke) gets an event of their own and, unless they shrug stuns off, lies stunned.

Parameters ​

sim ​

SimWorld

at ​

x ​

number

y ​

number

z ​

number

owner ​

number

weapon ​

number

Returns ​

void