Difference between revisions of "GetModelPath - Armor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Fg109
m
imported>Fg109
m (Removed link to Weapon Script)
Line 2: Line 2:
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:SKSE]]
[[Category:SKSE]]
'''SKSE Member of:''' [[Armor Script]], [[Weapon Script]]
'''SKSE Member of:''' [[Armor Script]]


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

Revision as of 15:53, 10 May 2012

SKSE Member of: Armor Script

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

Syntax

string Function GetModelPath(bool bFemalePath) native

Parameters

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

Return Value

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

Examples

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

Notes

  • This is to retrieve the nif file of the world model. That means the model you see when the armor is on the ground, not when it is equipped.

See Also