Caveats
Parameters
boolabVerbose=true
CK Wiki Description
Pass false to suppress UI messages for spells added to the player. Spells added to NPCs never result in a UI message.
- Default:True
Examples
; Adds the sheep spell to the player
if (Game.GetPlayer().AddSpell(SheepSpellProperty))
Debug.Trace("Sheep spell added to the player")
endIf; Adds the sheep spell to the player, silently
if (Game.GetPlayer().AddSpell(SheepSpellProperty, false))
Debug.Trace("Sheep spell added to the player (like a ninja!)")
endIfAuto-Generated Example
Spell mySpell__akSpell
bool myBool__abVerbose
bool returnedValue = myActor__toCallFunctionOn.AddSpell(mySpell__akSpell, myBool__abVerbose)Related Pages
- Actor
- Actor.RemoveSpell(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
