mob_chain
Component allowing you to create a linked list of mobs. These mobs will follow each other and attack as one, as well as sharing damage taken.
Vars | |
back | Mob behind us in the chain |
---|---|
front | Mob in front of us in the chain |
pass_damage_back | If true then damage we take is passed backwards along the line |
vary_icon_state | If true then we will set our icon state based on line position |
Procs | |
on_adjust_damage | On damage or heal, affect our furthest segment |
on_adjust_stamina | On gain or lose stamina, adjust our tail too |
on_attack | Tell our tail to attack too |
on_contracted | Called when our tail gets pulled up to our body |
on_death | If we die so does the guy behind us, then stop following the leader |
on_deletion | If we get deleted so does the guy behind us |
on_gained_tail | Called when something sets us as ITS front |
on_glide_size_changed | Maintain glide size backwards |
on_limb_damage | Special handling for if damage is delegated to a mob's limbs instead of its overall damage |
on_lost_tail | Called when our tail loses its chain component |
on_moved | Pull our tail behind us when we move |
on_pulled | Do not allow someone to be pulled out of the chain |
on_update_icon_state | Update our visuals based on if we have someone in front and behind |
update_mob_appearance | Update how we look |
Var Details
back
Mob behind us in the chain
front
Mob in front of us in the chain
pass_damage_back
If true then damage we take is passed backwards along the line
vary_icon_state
If true then we will set our icon state based on line position
Proc Details
on_adjust_damage
On damage or heal, affect our furthest segment
on_adjust_stamina
On gain or lose stamina, adjust our tail too
on_attack
Tell our tail to attack too
on_contracted
Called when our tail gets pulled up to our body
on_death
If we die so does the guy behind us, then stop following the leader
on_deletion
If we get deleted so does the guy behind us
on_gained_tail
Called when something sets us as ITS front
on_glide_size_changed
Maintain glide size backwards
on_limb_damage
Special handling for if damage is delegated to a mob's limbs instead of its overall damage
on_lost_tail
Called when our tail loses its chain component
on_moved
Pull our tail behind us when we move
on_pulled
Do not allow someone to be pulled out of the chain
on_update_icon_state
Update our visuals based on if we have someone in front and behind
update_mob_appearance
Update how we look