[DiscordArchive] what version of the game and what emulator are you using?
[DiscordArchive] what version of the game and what emulator are you using?
Archived author: <o> • Posted: 2022-07-23T23:23:05.674000+00:00
Original source
what version of the game and what emulator are you using?
Archived author: Kolonel • Posted: 2022-07-23T23:23:30.183000+00:00
Original source
wotlk 12340
Archived author: <o> • Posted: 2022-07-23T23:24:22.360000+00:00
Original source
on trinitycore it's `Object::GetTypeId`
Archived author: Kolonel • Posted: 2022-07-23T23:24:37.782000+00:00
Original source
ty ty
Archived author: <o> • Posted: 2022-07-23T23:25:01.931000+00:00
Original source
you also have convenience functions like `IsCreature`, `IsGameObject` etc
Archived author: <o> • Posted: 2022-07-23T23:26:27.457000+00:00
Original source
a common pattern is to just do
```c++
WorldObject* someInputObj = ...;
if(Creature* creature = dynamic_cast<Creature*>(someInputObj))
{
...
}
```