damage-health-framework

Implement a Unity damage and health system with IDamageable, damage types, and resistances.

71|11|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/nlelouche/Unity-SkillForge --skill damage-health-framework-nlelouche
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: damage-health-framework
Source: https://github.com/nlelouche/Unity-SkillForge/tree/main/.agent/skills/02-gameplay/damage-health-framework
Command: npx skills add https://github.com/nlelouche/Unity-SkillForge --skill damage-health-framework-nlelouche

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive and flexible system for managing health, damage, and resistances in Unity, simplifying the implementation of combat mechanics.

Core Features & Use Cases

  • IDamageable Interface: Standardized way to handle damage across all entities (players, enemies, destructibles).
  • Damage Types & Resistances: Supports various damage types (Physical, Fire, Ice, etc.) with configurable resistances and vulnerabilities.
  • Event-Driven: Fires events for health changes, death, and healing, enabling seamless integration with UI, VFX, and audio systems.
  • Use Case: Implement a boss with high resistance to physical damage but vulnerability to fire, and have its health bar update in real-time as the player attacks.

Quick Start

Create a new enemy GameObject and attach the HealthComponent script to it, configuring its max health and resistances in the inspector.

Frequently Asked Questions about damage-health-framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a health and damage system in Unity with damage types and resistances?

A Unity health and damage system can be implemented using an IDamageable interface to standardize damage across entities, while configuring specific damage types like Physical or Fire with adjustable resistances and vulnerabilities for robust combat mechanics.

How do I make enemy health bars update in real-time when taking damage in Unity?

To update health bars in real-time, use an event-driven health system that fires events on health changes, death, and healing, enabling seamless integration with UI components whenever an entity takes damage.

What is the best way to handle damage across players, enemies, and destructibles in Unity?

The best way to handle damage across varied entities is using an IDamageable interface, which provides a standardized method for applying damage from weapons and projectiles to players, enemies, and destructibles.

Can I configure a boss to be resistant to physical damage but vulnerable to fire in Unity?

Yes, you can configure a boss with high resistance to physical damage and vulnerability to fire by attaching a health component and adjusting the damage type modifiers in the Unity inspector.

How do I set up weapons and projectiles to deal different types of damage in Unity?

Set up weapons and projectiles by creating damage dealer components that interact with the IDamageable interface, allowing them to apply various damage types and modifiers to targets dynamically during combat.

Does this Unity damage framework require any external dependencies to function?

No, this Unity damage framework operates without external dependencies, using scripts, references, and assets to implement its event-driven health, damage, and resistance mechanics entirely within Unity.