SetModelPath
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Sets the model of the specified BaseForm.
- If a calling reference is passed, then its BaseForm will be used instead.
- This change is NOT savebaked.
- The file path is relative to ..\Data\Meshes\.
- If the replaced model is already loaded, then it will need to be reloaded via functions like ReloadEquippedModels or Update3D.
Syntax
(success:1/0) reference.SetModelPath NewPath:string form:baseForm
Notes
- This function was previously deprecated and removed in favor of SetModelPathEx, however that function has multiple issues related to its baseForm arg not working properly in most cases.
- SetModelPath will be re-introduced in xNVSE 6.3.6, and made to return 1/0 for success.
See Also
- SetModelPathEx (newer, more broken version. Not recommended.)
- GetModelPath
- SetRefrModelPath - only works on references, but enables per-reference unique changes.
- SetIconPath
- SetBipedModelPathAlt (the non-alt versions are broken)
- String Variable
- Let