Jump to content

Help - EquipSpell function


MaskedpENGUiN

Recommended Posts

Hi I need some help I am new to mod making and I need to know how to use the EquipSpell function,

I have tried searching for tutorials but nothing helps. All I have found is that the syntax is apparently this:

 

Function EquipSpell(Spell akSpell, int aiSource) native

 

but I have no idea how to apply this in a script.

Basically I am making a change form spell that basically turns the player into another race, like Spriggan or something like that, and I want to be able to force certain spells to be equipped when changing the player into a different race.

 

Help is much appreciated, ty!

Link to comment
Share on other sites

The argument parameter is expecting a spell, with the source being the equip type. The calling object needs to be an actor, or an alias cast to actor.

 

Example:

Spell property thisSpell auto
 
Event something()
    if someActor.GetEquippedSpell() != thisSpell
        someActor.EquipSpell(thisSpell, 1)
    endif
EndEvent

https://www.creationkit.com/index.php?title=EquipSpell_-_Actor

Edited by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...