Damageable Monster
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
 
The Damageable Monster smart asset configures a model that can take damage from players and NPCs. When its HP reaches zero, it transitions to a ragdoll state and respawns after a set delay.
Package structure
- Damageable Monster (Parent Object)
 - [Pivot] Monster (Child Folder)
 - [Logic] Root (Child Folder)
 
Damageable Monster
Contains a Behavior component with:
- HP: Health points of the monster (default 10, range 1 to 2,147,483,647)
 - Model List (e.g., Monster Patrick)
 - Event List:
- OnDeadEvent: Fired when HP reaches zero
 - OnRevivalEvent: Fired when the monster respawns
 - OnDamageEvent: Fired when the monster takes damage
 
 

[Pivot] Monster
Contains the body part models and key components such as:
- Move Action
 - Hit Action
 - Character Controller
 - Upper Body Attack Action
 - Animator Controller
 - Damageable Component
 

[Logic] Root
Contains logic triggers for damage and revival:
- [Trigger]Damage logic
 - [Trigger]Revival logic
 
Events and Actions
Events:
- OnDeadEvent: Fired when HP reaches zero
 - OnRevivalEvent: Fired when the monster respawns
 
Actions:
- ToggleRagdoll: Transition to a ragdoll state
 

Related components
This smart asset is commonly paired with the Wooden Staff (HandProp), which has an attack power to damage the monster.