Difference between revisions of "Ability ApplyEffectOnObjectArray"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{dafunction |name = Ability_ApplyEffectOnObjectArray |brief = Wrapper for ApplyEffectOnObject on an array of Objects |param1type = int |param1name = nDurationType |param1des...')
 
Line 4: Line 4:
 
|param1type = int
 
|param1type = int
 
|param1name = nDurationType
 
|param1name = nDurationType
|param1desc= can be [[EFFECT_DURATION_TYPE_PERMANENT]] [[EFFECT_DURATION_TYPE_INSTANTANEOUS]] or [[EFFECT_DURATION_TYPE_TEMPORARY]].
+
|param1desc= can be [[EFFECT_DURATION_TYPE_PERMANENT]] [[EFFECT_DURATION_TYPE_INSTANT]] or [[EFFECT_DURATION_TYPE_TEMPORARY]].
 
|param2type = effect
 
|param2type = effect
 
|param2name = eEffect
 
|param2name = eEffect

Revision as of 01:29, 25 February 2010

Wrapper for ApplyEffectOnObject on an array of Objects

void Ability_ApplyEffectOnObjectArray(
int nDurationType,
effect eEffect,
object[] arTarget,
float fDuration = 0.0f,
object oCreator = OBJECT_SELF,
int nAbilityId = 0,
int bSendAttackedEvent = FALSE,
int bPreventStacking = TRUE,
int bExcludeCreator = FALSE
);
Parameters:
nDurationType
can be EFFECT_DURATION_TYPE_PERMANENT EFFECT_DURATION_TYPE_INSTANT or EFFECT_DURATION_TYPE_TEMPORARY.
eEffect
the effect to be applied
arTarget
the targets of the effect
fDuration
this value needs to be set only when nDurationType is EFFECT_DURATION_TYPE_TEMPORARY
oCreator
effect creator
nAbilityId
The ability ID of the effect (Important for dispelling!!!)
bSendAttackedEvent
Whether to send an attacked event as well.
bPreventStacking
Prevent Stacking?.
bExcludeCreator
[Undocumented]
Returns:

Nothing.

Source:

Core Resources.ability_h