s&box docs

public sealed class Sandbox.RadiusDamage : Sandbox.Component

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

Constructors

Showing 1 constructors

Methods

Showing 2 methods

public void Apply()

Apply the damage now

public static void ApplyDamage(Sandbox.Sphere sphere, Sandbox.DamageInfo damage, float physicsForce = 1, Sandbox.GameObject ignore = null, bool occlusion = True)

Parameters

  • physicsForce: Default: 1
  • ignore: Default: null
  • occlusion: Default: True

Properties

Showing 7 properties

public float Sandbox.RadiusDamage.DamageAmount { get; set; }

The amount of damage inflicted

public bool Sandbox.RadiusDamage.DamageOnEnabled { get; set; }

If enabled we'll apply damage once as soon as enabled

public Sandbox.TagSet Sandbox.RadiusDamage.DamageTags { get; set; }

Tags to apply to the damage

public bool Sandbox.RadiusDamage.Occlusion { get; set; }

Should the world shield victims from damage?

public float Sandbox.RadiusDamage.PhysicsForceScale { get; set; }

How much physics force should be applied on explosion?

public float Sandbox.RadiusDamage.Radius { get; set; }

The radius of the damage area.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.RadiusDamage

On this page