SetMagicEffectCounters

From the Oblivion ConstructionSet Wiki
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.