life_link
A mob with this component passes all damage (and healing) it takes to another mob, passed as a parameter Essentially we use another mob's health bar as our health bar
Vars | |
host | Mob we pass all of our damage to |
---|---|
on_linked_death | Optional callback invoked when the linked mob dies |
on_passed_damage | Optional callback invoked when damage gets transferred |
Procs | |
on_damage_adjusted | Called when your damage goes up or down |
on_health_updated | Called when either the host or parent's health tries to update, update our displayed health |
on_host_deleted | Called when |
on_host_died | Called when our host dies, we should die too |
on_host_revived | Called when our host undies, we should undie too |
on_limb_damage | Called when someone hurts one of our limbs, bypassing normal damage adjustment |
on_status_tab_updated | When our status tab updates, draw how much HP our host has in there |
register_host | Set someone up as our new host |
unregister_host | Drop someone from being our host |
update_health_hud | Update our parent's health display based on how harmed our host is |
update_med_hud_health | Update our health on the medical hud |
update_med_hud_status | Update our vital status on the medical hud |
Var Details
host
Mob we pass all of our damage to
on_linked_death
Optional callback invoked when the linked mob dies
on_passed_damage
Optional callback invoked when damage gets transferred
Proc Details
on_damage_adjusted
Called when your damage goes up or down
on_health_updated
Called when either the host or parent's health tries to update, update our displayed health
on_host_deleted
Called when
on_host_died
Called when our host dies, we should die too
on_host_revived
Called when our host undies, we should undie too
on_limb_damage
Called when someone hurts one of our limbs, bypassing normal damage adjustment
on_status_tab_updated
When our status tab updates, draw how much HP our host has in there
register_host
Set someone up as our new host
unregister_host
Drop someone from being our host
update_health_hud
Update our parent's health display based on how harmed our host is
update_med_hud_health
Update our health on the medical hud
update_med_hud_status
Update our vital status on the medical hud