Difference between revisions of "Engine ApplyEffectOnObject"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (remove tag) |
BryanDerksen (Talk | contribs) (fix link) |
||
Line 4: | Line 4: | ||
|param1type=int | |param1type=int | ||
|param1name=nDurationType | |param1name=nDurationType | ||
− | |param1desc=can be [[EFFECT_DURATION_TYPE_PERMANENT]] [[ | + | |param1desc=can be [[EFFECT_DURATION_TYPE_PERMANENT]] [[EFFECT_DURATION_TYPE_INSTANT]] or [[EFFECT_DURATION_TYPE_TEMPORARY]] |
|param1default= | |param1default= | ||
|param2type=effect | |param2type=effect |
Revision as of 22:12, 2 March 2010
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
);
int nDurationType,
effect eEffect,
object oTarget,
float fDuration = 0.0,
object oCreator = OBJECT_SELF,
int nAbilityId = 0
);
- Parameters:
- nDurationType
- can be 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
- 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 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!