I'm trying this on Module Exit
void CleanPlayerAOES(object oPC)
{
object oAREA = GetArea(oPC);
object oSEEK = GetFirstObjectInArea(oAREA);
while(GetIsObjectValid(oSEEK))
{
if(GetObjectType(oSEEK) == OBJECT_TYPE_AREA_OF_EFFECT)
{
if(GetAreaOfEffectCreator(oSEEK) == oPC)
{
DestroyObject(oSEEK);
}
}
oSEEK = GetNextObjectInArea(oAREA);
}
}
But it doesnt work, when player leave, some data is missing i guess
Modifié par Irisiri, 03 février 2012 - 06:19 .