The health component is responsible for managing the hit points of the entity.
setMaxHealth (amount:Int)
setHealth (amount:Int)
damage (amount:Int, source:Entity)
heal (amount:Int, source:Entity)
After taking damage, if the health of the entity ends up being 0 or below, the health component will send the event "die" to it's entity.
There was an error while loading. Please reload this page.