void KillTheFaction(object oMember) //
{
object oTarget;
effect eDeath = EffectDeath(); //This Simply Works (Apply Damage can crash the game)
oTarget = GetFirstFactionMember(oMember, TRUE);
while(GetIsObjectValid(oTarget))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oTarget);
oTarget = GetNextFactionMember(oMember, TRUE);
}
}
Modifié par Genisys, 31 août 2010 - 07:46 .