SetMagicEffectCounters

From the Oblivion ConstructionSet Wiki
Revision as of 23:55, 8 August 2010 by imported>CSbot (Automated import of articles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(effectsApplied:bool) SetMagicEffectCounters counterEffects:Array magicEffect:Ref 
(effectsApplied:bool) SetMECounters counterEffects:Array magicEffect:Ref 
(effectsApplied:bool) SetMagicEffectCountersC counterEffects:Array magicEffectCode:long 
(effectsApplied:bool) SetMECountersC

Accepts an Array of effect codes and assigns those effects as counter-effects for the specified magic effect, overriding any existing counter-effects. The user must guarantee that the passed array contains valid effect codes and nothing else. The function returns 1 if the new counter-effects were successfully applied, 0 otherwise.ALTALIAS.