openclonk/planet/Objects.ocd/Rules.ocd/BaseRespawn.ocd/Script.c

10 lines
264 B
C

/* Converts itself to the Rule_Relaunch rule. */
protected func Construction()
{
var relaunch_rule = GetRelaunchRule();
relaunch_rule->SetBaseRespawn(true);
relaunch_rule->SetFreeCrew(false);
relaunch_rule->SetLastClonkRespawn(true);
return RemoveObject();
}