Quantcast HOWTO: apply skin to a model in LUA? - WoWInterface
Thread Tools Display Modes
07-26-16, 12:52 AM   #1
adigitalgirl
A Defias Bandit
Join Date: Jul 2016
Posts: 3
HOWTO: apply skin to a model in LUA?

How do you apply a skin to a model in LUA?
  Reply With Quote
07-26-16, 11:37 AM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,364
Do you mean a model in the UI (like the model of the player in your character sheet), or a model in the world?

1st one:
http://wowprogramming.com/docs/widgets/PlayerModel

2nd one:
You can't, and any model edits are against the TOS.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
07-26-16, 04:23 PM   #3
adigitalgirl
A Defias Bandit
Join Date: Jul 2016
Posts: 3
basically, I want to specify a specific skin of a model
Model:SetModel("Creature/Murloc/babymurloc.m2");

Just for displaying purposes, not modifying.
  Reply With Quote
07-26-16, 06:08 PM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,005
You can't change the skin of a model.

If you want a specific skin on a specific model you'll need to find its display ID and use model:SetDisplayInfo() (or less ideally model:SetCreature() if you can't figure out its display ID) for it.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » HOWTO: apply skin to a model in LUA?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off