Difference between revisions of "SetModelPath - ArmorAddon"

4 bytes added ,  16:02, 29 September 2013
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