Quantcast
How to access DisplayID of a game object - WoWInterface
Thread Tools Display Modes
11-16-21, 01:50 PM   #1
Zicoss
A Murloc Raider
Join Date: Sep 2019
Posts: 4
Question How to access DisplayID of a game object

Like the title, how to access DisplayID of a game object to display it in a frame.

By game object, i mean an object like this https://fr.wowhead.com/object=148502/page-9 or like all these interactive objects https://www.wowhead.com/objects

I looked at the wowhead code source and i found that there was displayID for the object. So i tried to display it with SetDisplayInfo(displayID) function, but this function it's only for NPC display ID and not for object.

Maybe i miss another function or stuff like that idk.

Hope you'll help me, if you have any questions i'll anwser them.
  Reply With Quote
11-16-21, 02:11 PM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,016
It looks like you need to look up that ID in GameObjectDisplayInfo.db2
Lua Code:
  1. local m = CreateFrame("PlayerModel")
  2. m:SetPoint("CENTER")
  3. m:SetSize(200, 200)
  4. m:SetModel(305393) -- world/expansion03/doodads/worgen/items/worgen_paper_04.m2
  Reply With Quote
11-16-21, 03:56 PM   #3
Zicoss
A Murloc Raider
Join Date: Sep 2019
Posts: 4
That's exactly what i'm looking for, thank you so much!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to access DisplayID of a game object

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