RoT2_PRC8/_module/nss/res_death.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

21 lines
660 B
Plaintext

//
// Res_Death script
//
// Note:
//
// If a corpse is killed a second time before the fCorpseRemainTime expires, the first value will be used
// in the delaycommand. Example:
//
// Time Index Action
// 0 You Kill Creature
// 6 Faction resurrects killed creature
// 15 You Kill Same Creature
// 20 Creature Corpse disappears! (Time index does NOT reset for each death)
//
void main()
{
float fCorpseRemainTime = 20.0; // Amount of time corpse remains until death.
SetIsDestroyable(FALSE,TRUE,TRUE);
DelayCommand(fCorpseRemainTime,ExecuteScript("res_shout", OBJECT_SELF));
}