Skip to content

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

Function: blast() ​

blast(sim, x, y, z, owner, weapon, size?, spare?): void

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

A blast: an event, a shove and damage (fading with distance) to every car, trailer and person within the radius: a rocket's or a grenade's by default (the weapon's damage), or as big as size says (a car blowing up, fire.ts), sparing the entity spare (the car that blew up).

Parameters ​

sim ​

SimWorld

x ​

number

y ​

number

z ​

number

owner ​

number

weapon ​

number

size? ​

BlastSize = ...

spare? ​

number = -1

Returns ​

void