Background for Skyrim SE
Member of the Armor script
voidfunctionSetModelPath(stringpath, boolbFemalePath)Native

Description

Wiki Description

Sets the file path for the NetImmerse File (.nif) representing the world & inventory model of the armor to the specified path. (This function requires SKSE)


Caveats

CK Wiki - Notes

  • This is to set the file path of the ground/inventory model. That means the model you see in your inventory and when the armor is on the ground, not when it is equipped.
  • To set the file path used for equipped armor models on actors, run ArmorAddon.SetModelPath(...) on the appropriate ArmorAddon object.

Parameters

stringpath

CK Wiki Description

The file path of a model, beginning in the Data\Meshes\ folder.

boolbFemalePath

CK Wiki Description

Whether to set the file path of the male model (false) or female model (true) of the armor.


Examples

; Switch the male and female ground/inventory models of the player's equipped cuirass
Armor BodyArmor = Game.GetPlayer().GetWornForm(0x00000004) as Armor
String FilePath = BodyArmor.GetModelPath(False)
BodyArmor.SetModelPath(BodyArmor.GetModelPath(True), False)
BodyArmor.SetModelPath(FilePath, True)

Auto-Generated Example

string myString__path
bool myBool__bFemalePath

myArmor__toCallFunctionOn.SetModelPath(myString__path, myBool__bFemalePath)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.