xcafe Posted November 25, 2016 Share Posted November 25, 2016 I can't figure this out! I know there are commands to get what the player has in their hand, or specifically a weapon, spell, or shield, but is there a command to get the armor like that? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 26, 2016 Share Posted November 26, 2016 A little tricky to get working due to the use of body slots and the fact that not all armors (especially modded) conform to the same slot setups, but SKSE has GetWornForm available to do just that. Link to comment Share on other sites More sharing options...
xcafe Posted November 26, 2016 Author Share Posted November 26, 2016 A little tricky to get working due to the use of body slots and the fact that not all armors (especially modded) conform to the same slot setups, but SKSE has GetWornForm available to do just that.Awesome, thanks! Link to comment Share on other sites More sharing options...
xcafe Posted November 27, 2016 Author Share Posted November 27, 2016 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 existC:\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 More sharing options...
IsharaMeradin Posted November 27, 2016 Share Posted November 27, 2016 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 More sharing options...
xcafe Posted November 27, 2016 Author Share Posted November 27, 2016 Yep that did it, all I had to do was replace the skse scripts. Link to comment Share on other sites More sharing options...
Recommended Posts