Api Sandbox RadiusDamage
class

RadiusDamage

public sealed class RadiusDamage : Component

Applies damage in a radius, with physics force, and optional occlusion

Constructors

RadiusDamage()

Properties

Name Type Description
Radius Single The radius of the damage area.
PhysicsForceScale Single How much physics force should be applied on explosion?
DamageOnEnabled Boolean If enabled we'll apply damage once as soon as enabled
Occlusion Boolean Should the world shield victims from damage?
DamageAmount Single The amount of damage inflicted
DamageTags TagSet Tags to apply to the damage
Attacker GameObject Who should we credit with this attack?

Methods

Void Apply()

Apply the damage now

static Void ApplyDamage(Sphere sphere, DamageInfo damage, Single physicsForce = 1, GameObject ignore = null, Boolean occlusion = True)
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.RadiusDamage