Log inGet started
World

Pathwise: Navigation and Crowd Agents Kit

README.md

Vitals

Health for any entity: a player body, an enemy, a dummy or a crate. The model field picks hit points, regenerating shield, armour, hearts, lives or downed-and-revive. The deathStyle field picks how it dies and comes back: instant, timed, wave, ragdoll, dissolve, spectate, remove or stay. The preset field sets both at once. Each can be changed while the game runs.

It sits on top of a sibling Lifeline.Health, which holds the actual health, shield, bars and damage numbers, and adds that component in awake when it is missing. The entity's owner runs the rules; every peer draws the effects. Its state is synced fields (armor, livesLeft, downed, bleedLeft, respawnIn, burning, poisonStacks, chilled …), so every player sees the same thing.

Add it with require("SecondWind.api").attach(entity, settings) or component.add. Hurt it with HK.damage. See the package README for every field.