RandomBoar Posted April 18, 2023 Share Posted April 18, 2023 How do I make it so a piece of equipment, lets say, a helmet, adds a spell to the player's magic menu when it's equipped and removes it when unequipped? Link to comment Share on other sites More sharing options...
greyday01 Posted April 18, 2023 Share Posted April 18, 2023 Actor Property PlayerRef AutoSpell Property SheepSpell Auto Event OnEquipped(Actor akActor)if akActor == PlayerRefPlayerRef.AddSpell(SheepSpell)EndIfendEvent Event OnUnequipped(Actor akActor)if akActor == PlayerRefPlayerRef.RemoveSpell(SheepSpell)endIfendEvent Link to comment Share on other sites More sharing options...
RandomBoar Posted April 19, 2023 Author Share Posted April 19, 2023 So, a script? Will this work for NPC's too or just the player? Link to comment Share on other sites More sharing options...
greyday01 Posted April 19, 2023 Share Posted April 19, 2023 It will work for NPCs as well.Just remove the line checking for the player and change the line below it toakActor.AddSpell(SheepSpell) orakActor.RemoveSpell(SheepSpell) that would work for any actor that equipts the item Link to comment Share on other sites More sharing options...
RandomBoar Posted April 19, 2023 Author Share Posted April 19, 2023 Much appreciated. You have my thanks. Link to comment Share on other sites More sharing options...
Recommended Posts