MaskedpENGUiN Posted August 17, 2018 Share Posted August 17, 2018 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 More sharing options...
Evangela Posted August 17, 2018 Share Posted August 17, 2018 (edited) 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 August 17, 2018 by Rasikko Link to comment Share on other sites More sharing options...
MaskedpENGUiN Posted August 17, 2018 Author Share Posted August 17, 2018 So how would I implement it? I am quite new to programming... I understand the basis of the function I just don't know how to implement it properly... Link to comment Share on other sites More sharing options...
Recommended Posts