Bittiez

Member
I'm scratching my head because this should be very simple,


C#:
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            //ExplodeFX.Air.CreateInstance(this, Map, 15, 3).Send();
            var e = new AirExplodeEffect(this, Map, 15, 2);
            e.Send();
        }

I've tried this numerous different ways and cannot get this to work, but using the default [ExplodeFX command works as expected.

No errors, just nothing happens in game. I tried the commented out way, I tried using this.Location, and I also tried using this.Location.Clone2D() in case location was a ref and being removed when the mobile dies but that was not the case either, any ideas what I am missing?
 
Do it before base.OnDeath(c) because that deletes the current mobile and would set Map to null.

The alternative is OnBeforeDeath.
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 124 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 87 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 77 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 70 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 25 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 22 Online
    • 48 Peak
  • Arth
    Custom (Modern)
    • Players
    • 20 Online
    • 34 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 18 Online
    • 32 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 16 Online
    • 30 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back