temporary_body
##temporary_body
Used on living mobs when they are meant to be a 'temporary body' Holds a reference to an old mind & body, to put them back in once the body this component is attached to, is being deleted.
Vars | |
delete_on_death | Returns the mind if the parent dies by any means |
---|---|
old_body_ref | The old body we will be put back into when parent is being deleted. |
old_mind_ref | The old mind we will be put back into when parent is being deleted. |
Procs | |
on_parent_destroy | Sends the mind of the temporary body back into their previous host If the previous host is alive, we'll force them into the body. Otherwise we'll let them hang out as a ghost still. |
Var Details
delete_on_death
Returns the mind if the parent dies by any means
old_body_ref
The old body we will be put back into when parent is being deleted.
old_mind_ref
The old mind we will be put back into when parent is being deleted.
Proc Details
on_parent_destroy
Sends the mind of the temporary body back into their previous host If the previous host is alive, we'll force them into the body. Otherwise we'll let them hang out as a ghost still.