Difference between revisions of "Engine ApplyEffectOnObject"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(fix link)
m (added param6desc information about dispelling)
Line 16: Line 16:
 
|param4type=float
 
|param4type=float
 
|param4name=fDuration
 
|param4name=fDuration
|param4desc=this value needs to be set only when nDurationType is EFFECT_DURATION_TYPE_TEMPORARY
+
|param4desc=this value needs to be set only when nDurationType is [[EFFECT_DURATION_TYPE_TEMPORARY]]
 
|param4default=0.0
 
|param4default=0.0
 
|param5type=object
 
|param5type=object
Line 24: Line 24:
 
|param6type=int
 
|param6type=int
 
|param6name=nAbilityId
 
|param6name=nAbilityId
|param6desc=ability id
+
|param6desc=ability ID of the effect (Important for dispelling!)
 
|param6default=0
 
|param6default=0
 
|returntype=void
 
|returntype=void

Revision as of 05:53, 27 February 2011

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
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 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!