Background for Skyrim SE
Member of the ArmorAddon script
voidfunctionSetModelPath(stringpath, boolfirstPerson, boolfemale)Native

Description

Wiki Description

Sets the file path for the nif file representing the equipped model of the armor. (This function requires SKSE)

Documentation Comment

sets the model path of the particular model


Caveats

CK Wiki - Notes

  • WARNING: Changing the file path of an ArmorAddon affects all armor using it!
  • This is to set the nif file of the equipped model on an actor. Use Armor.SetModelPath(...) to set the nif file of the armor as it appears on the ground.
  • Remember that this function sets string values for ArmorAddon objects, not for Armor objects. You can use Armor.GetNthArmorAddon(...) on Armor objects to quickly retrieve ArmorAddon objects, however.
  • Graphical glitches can result if the target ArmorAddon and the source ArmorAddon do not use the same Biped Objects.
    • Example: Changing IronHelmetAA (Biped: 31 & 43) to use the model path from EbonyHelmetAA (Biped: 30) will result in a bald character wearing no helmet.

Parameters

  1. stringpath

    CK Wiki Description

    The file path for the .nif file you want to change to.

  2. boolfirstPerson

    CK Wiki Description

    Whether to set the file path of the biped armor model (false) or first person armor model (true).

  3. boolfemale

    CK Wiki Description

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


Examples

No human-generated examples found for this function.

Auto-Generated Example

string myString__path
bool myBool__firstPerson
bool myBool__female

myArmorAddon__toCallFunctionOn.SetModelPath(myString__path, myBool__firstPerson, myBool__female)

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.