20 lines
353 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oTarget = OBJECT_SELF;
SetCommandable(TRUE, oTarget);
AssignCommand(oTarget, ClearAllActions());
effect eFX = GetFirstEffect(oTarget);
while (GetIsEffectValid(eFX))
{
if(GetEffectType(eFX) == EFFECT_TYPE_VISUALEFFECT)
{
RemoveEffect(oTarget, eFX);
}
eFX = GetNextEffect(oTarget);
}
}