/tg/ Station 13 - Modules - TypesVar Details - Proc Details

temporary_body

temporary_body

Used on mobs when they are meant to be a 'temporary body' Holds a reference to an old mind, to put them back in once the body this component is attached to, is being deleted.

Vars

old_bodyThe old body we will be put back into when parent is being deleted.
old_mindThe old mind we will be put back into when parent is being deleted.
return_on_deathReturns the mind if the PARENT dies by any means
return_on_reviveReturns the mind if the OLD_BODY is revived

Procs

on_body_destroyBody reference handling
on_mind_transferSwap the target of old_body if old_mind is transferred somewhere while we're away
return_mindSends the mind of the temporary body back into their previous host If the previous host is alive, we'll also force them into the body. Otherwise we'll let them hang out as a ghost still.

Var Details

old_body

The old body we will be put back into when parent is being deleted.

old_mind

The old mind we will be put back into when parent is being deleted.

return_on_death

Returns the mind if the PARENT dies by any means

return_on_revive

Returns the mind if the OLD_BODY is revived

Proc Details

on_body_destroy

Body reference handling

on_mind_transfer

Swap the target of old_body if old_mind is transferred somewhere while we're away

return_mind

Sends the mind of the temporary body back into their previous host If the previous host is alive, we'll also force them into the body. Otherwise we'll let them hang out as a ghost still.