Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

How to remove all AOEs from Area?

How do I remove all AOEs from area and/or by specific type?

For example, boss dies and I want to remove all the AOEs he casted.


  • TerrorbleTerrorble Member Posts: 74
    In the boss's OnDeath event handle script you could add code to cycle thru the objects in the area and find any AoEs, then destroy those that were created by the boss.

    I haven't tested it, but it works... on paper :smile:

    object oArea = GetArea(OBJECT_SELF); object o = GetFirstObjectInArea(oArea); while( GetIsObjectValid(o) ) { if( GetObjectType(o) == OBJECT_TYPE_AREA_OF_EFFECT ) { if( GetAreaOfEffectCreator(o) == OBJECT_SELF ) DestroyObject(o); } o = GetNextObjectInArea(oArea); }

  • FinalStandFinalStand Member Posts: 87
    Thanks, that works. I was looking for GetFirstEffect on area which wasn't.

Sign In or Register to comment.