forked from Mirrors/openclonk
12 lines
368 B
C
12 lines
368 B
C
#appendto Clonk
|
|
// Lose all items on death.
|
|
func StartDead()
|
|
{
|
|
PlayAnimation("Dead", 5, Anim_Linear(0, 0, GetAnimationLength("Dead"), 20, ANIM_Hold), Anim_Linear(0, 0, 1000, 5, ANIM_Remove));
|
|
// Update carried items
|
|
UpdateAttach();
|
|
if(Contents(1))Contents(1)->RemoveObject();
|
|
if(Contents(0))Contents(0)->RemoveObject();
|
|
// Set proper turn type
|
|
SetTurnType(1);
|
|
} |