Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  +
{{widgetmethod}}
<center>'''SetModel''' ''-Documentation by [[User:DerGhulbus|DerGhulbus]]-''</center>
 
   
 
Set the Modelframe to display a certain mesh.
 
Set the Modelframe to display a certain mesh.
Line 14: Line 14:
   
 
: You will find most of the meshes that are shipped with the game inside of model.MPQ. Theoretically you may also load additional meshes provided through AddOns using this function, although there are almost no AddOns out there that make use of this technique at the time.
 
: You will find most of the meshes that are shipped with the game inside of model.MPQ. Theoretically you may also load additional meshes provided through AddOns using this function, although there are almost no AddOns out there that make use of this technique at the time.
:Notice that WoW adresses its meshes with a .mdx ending, although they have a .m2 ending in the model.mpq. This is probably due to historical issues that emerged while the game was developed.
 
   
  +
==Notes==
----
 
 
Notice that WoW adresses its meshes with a .mdx ending, although they have a .m2 ending in the model.mpq. This is probably due to historical issues that emerged while the game was developed.
   
  +
A side effect of this function is that it seems to preload the specified mesh into some internal cache. When you're trying to load a mesh that's not shipped with the game, you'll might be forced to call a SetModel() at startup or your mesh won't load at all.
{{Template:WoW API}}
 

Revision as of 23:57, 14 July 2008

Set the Modelframe to display a certain mesh.


Parameters

  • Path - String
The full path to the meshfile you want to display.

Example

MyModel:SetModel("Character\\NightElf\\Female\\NightElfFemale.mdx");

Details

You will find most of the meshes that are shipped with the game inside of model.MPQ. Theoretically you may also load additional meshes provided through AddOns using this function, although there are almost no AddOns out there that make use of this technique at the time.

Notes

Notice that WoW adresses its meshes with a .mdx ending, although they have a .m2 ending in the model.mpq. This is probably due to historical issues that emerged while the game was developed.

A side effect of this function is that it seems to preload the specified mesh into some internal cache. When you're trying to load a mesh that's not shipped with the game, you'll might be forced to call a SetModel() at startup or your mesh won't load at all.