Jump to content

Way to get player armor through papyrus?


xcafe

Recommended Posts

So when I try and use GetWornForm, it's giving me errors :(

Armor Chest1 = Game.GetPlayer().GetWornForm(0x00000004) as Armor
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\scripts\source\outfitmanager.psc(18,32): GetWornForm is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\scripts\source\outfitmanager.psc(18,56): cannot cast a none to a armor, types are incompatible
Link to comment
Share on other sites

Game.GetPlayer() returns an actor which is what GetWornForm needs so it shouldn't be looking on the wrong script for the function. It is possible that your Actor.psc file has been reverted to stock and no longer contains the SKSE functions.

 

Make sure you are using the latest version of SKSE. Install manually to ensure files are in their correct locations. Make sure you are working with original Skyrim and not the Special Edition. Confirm that the function GetWornForm is on the Actor.psc file by opening it up and looking for it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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