Engine ApplyEffectOnObject

From Dragon Age Toolset Wiki
Revision as of 20:30, 3 August 2011 by Sunjammer (Talk | contribs) (Updating links)

Jump to: navigation, search

This function applies an effect on an object.

void Engine_ApplyEffectOnObject(
int nDurationType,
effect eEffect,
object oTarget,
float fDuration = 0.0,
object oCreator = OBJECT_SELF,
int nAbilityId = 0
);
Parameters:
nDurationType
EFFECT_DURATION_TYPE_PERMANENT, EFFECT_DURATION_TYPE_INSTANT or EFFECT_DURATION_TYPE_TEMPORARY
eEffect
the effect to be applied
oTarget
the target of the effect
fDuration
a duration, in seconds, is only required when nDurationType is EFFECT_DURATION_TYPE_TEMPORARY
oCreator
effect creator
nAbilityId
ability ID of the effect (important for dispelling)
Returns:

Nothing.

Source:

script.ldf

Description

Applies eEffect to oTarget. If nDurationType is EFFECT_DURATION_TYPE_TEMPORARY, then fDuration is the duration of the effect.

Use core_h.ApplyEffectToObject instead of calling this directly.