Class ForcePlayerDamager
This component damages the player, even if the player is shadow dashing or desolate diving
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class ForcePlayerDamager : DamageHero
Properties
| Edit this page View SourcehazardType
Declaration
public HazardType hazardType { get; set; }
Property Value
Type | Description |
---|---|
HazardType |
Methods
| Edit this page View SourceForceDamage(HeroController, GameObject, CollisionSide, int, HazardType)
Forces the player to take damage. Ignores shadow dash and desolate dive invincibility
Declaration
public static void ForceDamage(HeroController controller, GameObject source, CollisionSide damageSide, int damageAmount, HazardType hazardType)
Parameters
Type | Name | Description |
---|---|---|
HeroController | controller | The player to damage |
GameObject | source | The source of the damage |
CollisionSide | damageSide | Which direction the damage is coming from |
int | damageAmount | The amount of damage to deal |
HazardType | hazardType | The type of damage to deal |