SetWorldModelPath - Form: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function SetWorldModelPath(String Path) native
Function SetWorldModelPath(String Path) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 21: Line 21:
'''Setting up correct world model path properly'''
'''Setting up correct world model path properly'''


<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Set 1st person iron sword static to use 1st person elven sword static world model, emerging from Data/Meshes
; Set 1st person iron sword static to use 1st person elven sword static world model, emerging from Data/Meshes
1stPersonIronSword.SetWorldModelPath("Weapons/Elven/1stPersonElvenSword.nif")
1stPersonIronSword.SetWorldModelPath("Weapons/Elven/1stPersonElvenSword.nif")
; Iron sword's now using the Elven sword world model!
; Iron sword's now using the Elven sword world model!
</source>
</syntaxhighlight>
<br>
<br>


'''How to execute maintenance code to apply changes on already placed instances of base object'''
'''How to execute maintenance code to apply changes on already placed instances of base object'''


<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; example on how to set up maintenance code in order to replace world model on loading a game, with the one applied before saving the game
; example on how to set up maintenance code in order to replace world model on loading a game, with the one applied before saving the game
; this example uses SkyUI menu option to replace world models via MCM menu
; this example uses SkyUI menu option to replace world models via MCM menu
Line 56: Line 56:
EndFunction
EndFunction
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu