pub fn add_dead(
commands: Commands<'_, '_>,
query: Query<'_, '_, (Entity, &Health), Changed<Health>>,
)
Expand description
System that adds the Dead
marker component if an entity’s health is set
to 0 (or less than 0). This will be present if an entity is doing the death
animation.
Entities that are dead can not be revived. TODO: fact check this in-game by setting an entity’s health to 0 and then not 0