Difference between revisions of "SetModelPath - Armor"
Jump to navigation
Jump to search
imported>Fg109 m |
imported>Loop not defined m |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:SKSE]] | [[Category:SKSE]] | ||
'''SKSE Member of:''' [[Armor | '''SKSE Member of:''' [[Armor Script]] | ||
Sets the file path for the nif | Sets the file path for the NetImmerse File (.nif) representing the world & inventory model of the armor to the specified path. (This function requires SKSE) | ||
== Syntax == | == Syntax == | ||
Line 12: | Line 12: | ||
== Parameters == | == Parameters == | ||
*path: The file path of | *path: The file path of a model, beginning in the Data\Meshes\ folder. | ||
*bFemalePath: Whether to set the file path of the male or female model of the armor. | *bFemalePath: Whether to set the file path of the male model (false) or female model (true) of the armor. | ||
== Return Value == | == Return Value == | ||
Line 20: | Line 20: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Switch the male and female 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 | ||
String FilePath = BodyArmor.GetModelPath(False) | String FilePath = BodyArmor.GetModelPath(False) | ||
Line 28: | Line 28: | ||
== Notes == | == Notes == | ||
*This is to set the | *This is to set the file path of the ground/inventory model. That means the model you see in your inventory and when the armor is on the ground, not when it is equipped. | ||
*To set the file path used for equipped armor models on actors, run [[SetModelPath - ArmorAddon]] on the appropriate [[ArmorAddon]] object. | |||
== See Also == | == See Also == | ||
*[[Armor Script]] | *[[Armor Script]] | ||
*[[GetModelPath - Armor]] | *[[GetModelPath - Armor]] |
Latest revision as of 15:36, 25 September 2013
SKSE Member of: Armor Script
Sets the file path for the NetImmerse File (.nif) representing the world & inventory model of the armor to the specified path. (This function requires SKSE)
Syntax[edit | edit source]
Function SetModelPath(string path, bool bFemalePath) native
Parameters[edit | edit source]
- path: The file path of a model, beginning in the Data\Meshes\ folder.
- bFemalePath: Whether to set the file path of the male model (false) or female model (true) of the armor.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Switch the male and female ground/inventory models of the player's equipped cuirass
Armor BodyArmor = Game.GetPlayer().GetWornForm(0x00000004) as Armor
String FilePath = BodyArmor.GetModelPath(False)
BodyArmor.SetModelPath(BodyArmor.GetModelPath(True), False)
BodyArmor.SetModelPath(FilePath, True)
Notes[edit | edit source]
- This is to set the file path of the ground/inventory model. That means the model you see in your inventory and when the armor is on the ground, not when it is equipped.
- To set the file path used for equipped armor models on actors, run SetModelPath - ArmorAddon on the appropriate ArmorAddon object.