Background for Fallout 4
Member of the Actor script
voidfunctionEquipSpell(SpellakSpell, intaiSource)Native

Description

Wiki Description

Forces the actor to equip the specified spell in the specified source.

Documentation Comment

Forces this actor to equip the specified spell. The casting source can be:
0 - Left hand
1 - Right hand


Caveats


Parameters

SpellakSpell

CK Wiki Description

The spell to force the actor to equip.

intaiSource

CK Wiki Description

The source to equip the spell into.

  • One of the following values is acceptable:* 0:Left hand

    • 1:Right hand
    • 2:Voice (use this for Powers)
  • aiSource is required, but it will be overridden by the Spell's Equip Slot if it is set to anything other than BothHands in the editor.


Examples

; Forces bob to equip ward into his right hand
Bob.EquipSpell(WardProperty, 1)
; Equip the Beast Form power. Note that WerewolfChange's Equip Slot must be set to Voice.
Bob.EquipSpell(WerewolfChange, 2)

Auto-Generated Example

Spell mySpell__akSpell
int myInt__aiSource

myActor__toCallFunctionOn.EquipSpell(mySpell__akSpell, myInt__aiSource)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.