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>Ez0n3
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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''.
{{Function
 
|CSWikiPage = AddSpell
'''Syntax'''
|origin = GECK1
 
|summary = 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''.
  [''ActorID''.]AddSpell ''EffectID''
|name = AddSpell
 
|returnType = void
'''Example'''
  |referenceType = [ActorRefID]
 
|arguments =
  AddSpell StealthBoyInvisibilitySpell
  {{FunctionArgument
  |Name = EffectID
  |Type = ref
  }}
  |example = AddSpell StealthBoyInvisibilitySpell
}}


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


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Game Effect Functions]]
[[Category:Game Effect Functions]]
[[Category:Game Effect Functions (GECK 1.1)]]
[[Category:Actor Functions]]
[[Category:Actor Functions]]
 
[[Category:Actor Functions (GECK 1.1)]]


<!-- Begin Search Terms
<!-- Begin Search Terms

Latest revision as of 06:06, 15 January 2011

< [[::Category:Functions|Category:Functions]]

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

[help]
[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