SetModelPath - ArmorAddon: Difference between revisions

Jump to navigation Jump to search
m
→‎Examples: added hex notations to first example
imported>Loop not defined
(Notes: added graphical glitch details.)
imported>Loop not defined
m (→‎Examples: added hex notations to first example)
Line 22: Line 22:
<source lang="papyrus">
<source lang="papyrus">
; Change all Ebony Armor (cuirass) to appear as Orcish Armor
; Change all Ebony Armor (cuirass) to appear as Orcish Armor
ArmorAddon orcishCuirassAA = (Game.GetForm(00013957) as Armor).GetNthArmorAddon(0)
ArmorAddon orcishCuirassAA = (Game.GetForm(0x00013957) as Armor).GetNthArmorAddon(0)
string FilePath = orcishCuirassAA.GetModelPath(false, false) ; Get Orcish Armor file path
string FilePath = orcishCuirassAA.GetModelPath(false, false) ; Get Orcish Armor file path
ArmorAddon ebonyCuirassAA = (Game.GetForm(00013961) as Armor).GetNthArmorAddon(0)
ArmorAddon ebonyCuirassAA = (Game.GetForm(0x00013961) as Armor).GetNthArmorAddon(0)
ebonyCuirassAA.SetModelPath(FilePath, false, false) ; Sets Ebony Armor model path to Orcish Armor .nif file
ebonyCuirassAA.SetModelPath(FilePath, false, false) ; Sets Ebony Armor model path to Orcish Armor .nif file
; NOTE: Only affects male actors in 3rd person view
; NOTE: Only affects male actors in 3rd person view

Navigation menu