GetModelPath - ArmorAddon
Revision as of 09:25, 19 September 2013 by imported>Loop not defined (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ArmorAddon Script Returns the file path for the nif file representing the equipped mod...")
SKSE Member of: ArmorAddon Script
Returns the file path for the nif file representing the equipped model of the armor. (This function requires SKSE)
Syntax
string Function GetModelPath(bool firstPerson, bool female) native
Parameters
- firstPerson: Whether to get the file path of the biped armor model (false) or first person armor model (true). Only applicable to certain armor types.
- female: Whether to get the file path of the male armor model (false) or female armor model (true).
Return Value
A string representing the file path of the nif file from the Data\Meshes folder.
Examples
; Retrieve the ArmorAddon nif file path for the biped male model of ArmorOrcishCuirass
Armor tempArmor = Game.GetForm(0x00012E49) as Armor ; WIKI EDITOR NOTE: Form ID currently references Iron Cuirass
ArmorAddon tempAA = tempArmor.GetNthArmorAddon(0) ; List of ArmorAddons assigned to Armor objects starts at 0
string FilePath = tempAA.GetModelPath(false, false)
; Returns "Armor\Orcish\cuirassM_1.nif"
Notes
- This is to retrieve the nif file of the equipped model on an actor. Use GetModelPath - Armor to retrieve the nif file of the armor as it appears on the ground.