HealthActionType - cluttered-code/godot-health-hitbox-hurtbox GitHub Wiki

inherits: Resource

The type of action to perform. Used to apply HealthModifier

Description

These types are used to apply different HealthModifer affects for different types of damage/healing.

[!TIP] Developers can add health action types here to enable more modifiers. Adding more types is only useful if you want to enable separate HealthModifier affects for each type.

damage type examples: BLUDGEON, PIERCE, POISON, FIRE, LIGHTNING...

heal type examples: POTION, MED_KIT, INJECTION, FOOD...

[!IMPORTANT] When adding custom types it is recommended to move this and it's guid file out of the 'addon' folder so this file isn't replaced when updating the plugin.

Enumerations

enum

enum Enum { NONE, MEDICINE, KINETIC }
  • Enum NONE = 0

  • Enum MEDICINE = 1

    The default type for Health.Affect.HEAL Health.Affect.
  • Enum KINETIC = 2

    The default type for Health.Affect.Damage Health.Affect.