RemoveEffectsByParameters

From Dragon Age Toolset Wiki
Jump to: navigation, search

Remove effects based on certain parameters

void RemoveEffectsByParameters(
object oTarget,
int nType = EFFECT_TYPE_INVALID,
int nAbilityId = ABILITY_INVALID,
object oCreator = OBJECT_INVALID
);
Parameters:
oTarget
The object to remove the effect from
nType
Only remove effects of this type (setting EFFECT_TYPE_INVALID will remove all types of effects)
nAbilityId
Only remove effects of with this ability id (setting ABILITY_INVALID will remove effects due to any ability)
oCreator
Only remove effects created by this object (setting OBJECT_INVALID will remove effects created by anything)
Returns:

Nothing.

Source:

script.ldf

Description

Removes a group of effects that have the specified values from the object it's applied to.