-
Notifications
You must be signed in to change notification settings - Fork 0
Component Health
Drakim edited this page Oct 5, 2016
·
1 revision
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.