SetModelPath

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

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

[help]
(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