RadiusDamageclass

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

objectComponentRadiusDamage
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.RadiusDamage : Sandbox.Component

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

public void Apply()PUBLIC

Apply the damage now

Returns:void

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

ParameterTypeDescription
sphereSphere
damageDamageInfo
physicsForce = 1float
ignore = nullGameObject
occlusion = Truebool
Returns:void

Properties7

Showing 7 properties

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

The amount of damage inflicted

Returns:float

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

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

Returns:bool

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

Tags to apply to the damage

Returns:TagSet

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

Should the world shield victims from damage?

Returns:bool

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

How much physics force should be applied on explosion?

Returns:float

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

The radius of the damage area.

Returns:float

On this page