Jump to content

Script problem: GetWornForm.


Thorham

Recommended Posts

Hi,

 

When I compile this script, the compiler complains that 'GetWornForm is not a function or does not exist':

 

Scriptname armortestscript extends ObjectReference

Spell Property Blizzard auto
Armor chest

Event OnEquipped(Actor akActor)
   If (akActor == Game.GetPlayer())
       Game.GetPlayer().AddSpell(Blizzard)
Debug.Notification("armor equipped 1234")

chest = akActor.GetWornForm(4) as armor

   EndIf
EndEvent

Event OnUnequipped(Actor akActor)
   If (akActor == Game.GetPlayer())
       Game.GetPlayer().RemoveSpell(Blizzard)
Debug.Notification("armor unequipped 1234")
   EndIf
EndEvent

 

This script is just a test I'm using to learn Papyrus+SKSE. What I ultimately want to do is make a dummy armor that can clone an equipped armor, except for it's appearance. For this it's obviously necessary to get a reference to the equipped chest armor. The script works fine, except for GetWornForm.

 

Any ideas as to why GetWornForm doesn't seem to exist, or is there an alternative to this function?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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