I'm trying to make it so a monster explodes minutes after its death

public override bool OnBeforeDeath()
{
Timer.DelayCall(
TimeSpan.FromMinutes(5.0),
() =>
{
new FireExplodeEffect(this, Map, 55, effectHandler: ExplosionDamage).Send();
});

return base.OnBeforeDeath();
}

Any reason why this is not working? It just... dies :p I tried to set the timer to5 secs to make it quicker and not wait but it didnt work either
 
Check DullCopperElemental.cs. This mobile explodes on death.
For more fun check out the Kamikaze Wizard script I uploaded, he explodes doing damage to players in range while sending body parts and entrails flying.
 

Attachments

  • KamikazeWizard.cs
    4.3 KB · Views: 12
Last edited:
Check DullCopperElemental.cs. This mobile explodes on death.
For more fun check out the Kamikaze Wizard script I uploaded, he explodes doing damage to players in range while sending body parts and entrails flying.

Thanks alot! looks fun and ill look at the ele :)

If you have a minute to check out my other issue it would be appreciated!
 
Back