Skip to content

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

Function: goOff() ​

goOff(sim, weapon, owner, at, on?): void

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

A thrown or launched weapon going off at at, by the client owner: its effect (see the module documentation); on, the vehicle a charge rode (its blast hits that one twice).

Parameters ​

sim ​

SimWorld

weapon ​

number

owner ​

number

at ​

x ​

number

y ​

number

z ​

number

on? ​

number = -1

Returns ​

void