How to remove all AOEs from Area?
FinalStand
Member Posts: 87
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.
For example, boss dies and I want to remove all the AOEs he casted.
0
Comments
I haven't tested it, but it works... on paper
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); }