Jump to content

[LE] What is the best way to add a spell to a piece of equipment?


Recommended Posts

Actor Property PlayerRef Auto

Spell Property SheepSpell Auto

 

Event OnEquipped(Actor akActor)

if akActor == PlayerRef

PlayerRef.AddSpell(SheepSpell)

EndIf

endEvent

 

Event OnUnequipped(Actor akActor)
if akActor == PlayerRef
PlayerRef.RemoveSpell(SheepSpell)
endIf

endEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

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