Difference between revisions of "AddSpell"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>DewiMorgan
m (→‎See Also: +TES4CS Wiki link)
imported>DewiMorgan
m (→‎See Also: +bullets)
Line 16: Line 16:


=='''See Also'''==
=='''See Also'''==
[[RemoveSpell]]<br>
*[[RemoveSpell]]<br>
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/AddSpell AddSpell]
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/AddSpell AddSpell]



Revision as of 12:38, 13 April 2009

Adds the actor effect to the calling actor, which will instantly be applied. The only types of actor effects used in the Vanilla Game are addictions and abilities.

Syntax

[ActorID.]AddSpell EffectID 

Example

AddSpell StealthBoyInvisibilitySpell

Notes

  • Be careful when using this function on non-unique actors. Adding an actor effect to an actor adds it to the base object, so any references that are later spawned from that base object will also have the effect.
  • Like most functions, this one is a little different when used as a console command. When used as a console command the EffectID must be specified as a FormID.

See Also