Difference between revisions of "Engine ApplyEffectOnObject"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Generated by Sunjammer's Dragon Age Script Paser)
 
m (1 revision: Importing auto-generated function articles)
(No difference)

Revision as of 16:44, 29 July 2009

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser extracted and matched all the information required to the best of its ability however the parser relies on the source file, and especially a function's comments, to be correctly formatted. If the source file was not correctly formatted the information presented may be incomplete.

This page should be reviewed by a knowledgeable scripter as it may require updating. If an issue with the source file is identified it should be reported to BioWare.

Please remove the {{Generated}} tag once the page has been confirmed or corrected.

This function applies an effect on an object.

void Engine_ApplyEffectOnObject(
int nDurationType,
effect eEffect,
object oTarget,
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
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!