API ReferenceSandbox
RadiusDamageclass
Applies damage in a radius, with physics force, and optional occlusion
Constructors1
Showing 1 constructors
public RadiusDamage()
No results match this filter.
Methods2
Showing 2 methods
public void Apply()
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)
| Parameter | Type | Description |
|---|---|---|
| sphere | Sphere | — |
| damage | DamageInfo | — |
| physicsForce = 1 | float | — |
| ignore = null | GameObject | — |
| occlusion = True | bool | — |
Returns:
void—No results match this filter.
Properties7
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
Returns:
float—public bool Sandbox.RadiusDamage.DamageOnEnabled { get; set; }
If enabled we'll apply damage once as soon as enabled
Returns:
bool—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?
Returns:
bool—public float Sandbox.RadiusDamage.PhysicsForceScale { get; set; }
How much physics force should be applied on explosion?
Returns:
float—public float Sandbox.RadiusDamage.Radius { get; set; }
The radius of the damage area.
Returns:
float—No results match this filter.