multiple_lives ![code/datums/components/multiple_lives.dm 5](git.png)
A simple component that spawns a mob of the same type and transfers itself to it when parent dies. For more complex behaviors, use the COMSIG_ON_MULTIPLE_LIVES_RESPAWN comsig.
Vars | |
lives_left | The number of respawns the living mob has left. |
---|---|
Procs | |
on_write_memory | Stops a dying station pet from overriding persistence data before we respawn it and thus causing issues. |
Var Details
lives_left ![code/datums/components/multiple_lives.dm 11](git.png)
The number of respawns the living mob has left.
Proc Details
on_write_memory
Stops a dying station pet from overriding persistence data before we respawn it and thus causing issues.