1,482
edits
m (Cecell moved page SetWorldModelPath- Form to SetWorldModelPath - Form) |
m (Convert source tags to syntaxhighlight) |
||
| Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function SetWorldModelPath(String Path) native | Function SetWorldModelPath(String Path) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 21: | Line 21: | ||
'''Setting up correct world model path properly''' | '''Setting up correct world model path properly''' | ||
< | <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! | ||
</ | </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''' | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||