Engine ApplyEffectAtLocation

From Dragon Age Toolset Wiki
Revision as of 00:04, 29 July 2009 by BryanDerksen (Talk | contribs) (fix some issues)

Jump to: navigation, search

This function applies an effect at a location.

void Engine_ApplyEffectAtLocation(
int nDurationType,
effect eEffect,
location lLocation,
float fDuration,
object oCreator,
int nAbilityId
);
Parameters:
nDurationType
can be EFFECT_DURATION_TYPE_PERMANENT, EFFECT_DURATION_TYPE_INSTANTANEOUS or EFFECT_DURATION_TYPE_TEMPORARY
eEffect
the effect to be applied
lLocation
the location at which the effect is applied
fDuration
this value needs to be set only when nDurationType is EFFECT_DURATION_TYPE_TEMPORARY
oCreator
effect creator
nAbilityId
ability id
Returns:

Nothing.

Source:

script.ldf

Description

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