Skip to content

Combat

export type CombatAPIExplosionParams = {
Position: Vector3,
Damage: number,
FalloffBegin: number?,
FalloffEnd: number,
Attacker: Participant?,
IgnoreKarma: boolean?,
Pressure: number?,
VisualRadius: number?,
BeforeHitParticipant: BeforeHitParticipant?,
Sound: Sound?,
}

Creates an explosion at the specified position with the specified damage, radius, and sound.

NameTypeDefaultDescription
paramsCombatAPIExplosionParamsFalloffBegin = 0, Pressure = Damage * 50, IgnoreKarma = false, VisualRadius = FalloffEnd, Sound = default explosion soundThe parameters for the explosion.

()