Mod:Creation Kit/EquipSpell - Actor

Member of: Mod:Creation Kit/Actor Script

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

Syntax
Function EquipSpell(Spell akSpell, int aiSource) native

Parameters

 * akSpell: The spell to force the actor to equip.
 * aiSource: 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.

Return Value
None.

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