GetModelPath - Armor

Revision as of 15:27, 25 September 2013 by imported>Loop not defined (→‎Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Armor Script

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

SyntaxEdit

string Function GetModelPath(bool bFemalePath) native

ParametersEdit

  • bFemalePath: Whether to get the file path of the male model (false) or female model (true) of the armor.

Return ValueEdit

A string representing the file path of the model from the Data\Meshes folder.

ExamplesEdit

; Retrieve the file path for the male model of ArmorIronCuirass
String FilePath = (Game.GetForm(0x00012E49) as Armor).GetModelPath(False)
; Returns "Armor\Iron\Male\CuirassLightGND.nif"

NotesEdit

  • This is to retrieve the file of the world & 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 retrieve the file used for equipped armor on actors, run GetModelPath - ArmorAddon on the appropriate ArmorAddon object.

See AlsoEdit