SetModelPath - Armor: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Loop not defined
mNo edit summary
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function SetModelPath(string path, bool bFemalePath) native
Function SetModelPath(string path, bool bFemalePath) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 19: Line 19:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Switch the male and female ground/inventory models of the player's equipped cuirass
; Switch the male and female ground/inventory models of the player's equipped cuirass
Armor BodyArmor = Game.GetPlayer().GetWornForm(0x00000004) as Armor
Armor BodyArmor = Game.GetPlayer().GetWornForm(0x00000004) as Armor
Line 25: Line 25:
BodyArmor.SetModelPath(BodyArmor.GetModelPath(True), False)
BodyArmor.SetModelPath(BodyArmor.GetModelPath(True), False)
BodyArmor.SetModelPath(FilePath, True)
BodyArmor.SetModelPath(FilePath, True)
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu