API ReferenceSandbox
public sealed class Sandbox.RadiusDamage : Sandbox.Component
Applies damage in a radius, with physics force, and optional occlusion
Constructors
Showing 1 constructors
public RadiusDamage()
No results match this filter.
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: 1ignore: Default: nullocclusion: Default: True
No results match this filter.
Properties
Showing 7 properties
public Sandbox.GameObject Sandbox.RadiusDamage.Attacker { get; set; }
Who should we credit with this attack?
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.RadiusDamage |