Difference between revisions of "AddSpell"

From GECK

m
 
Line 9: Line 9:
 
   {{FunctionArgument
 
   {{FunctionArgument
 
   |Name = EffectID
 
   |Name = EffectID
 +
  |Type = ref
 
   }}
 
   }}
 
  |example = AddSpell StealthBoyInvisibilitySpell
 
  |example = AddSpell StealthBoyInvisibilitySpell

Latest revision as of 05:06, 15 January 2011

Link to TES4 Construction Set Wiki: AddSpell.

A function included in the GECK version 1.1.0.36.

Description

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

[ActorRefID].AddSpell EffectID:ref

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

Personal tools