Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] How to fix that?

[DiscordArchive] How to fix that?

[DiscordArchive] How to fix that?

rektbyfaith
Administrator
0
08-28-2024, 02:03 AM
#1
Archived author: MâDmâX 蛇 • Posted: 2024-08-28T02:03:49.055000+00:00
Original source

How to fix that?
`Could not find FallObject with GUID GameObject-0-1-1-0-555555-000000000AD`
What do i need to use to have the right guid instead of that line?
Edit:
I can't use `me->GetGUID().GetCounter()` in `despawnedObjects.push_back(HERE);`
How to solve this?
rektbyfaith
08-28-2024, 02:03 AM #1

Archived author: MâDmâX 蛇 • Posted: 2024-08-28T02:03:49.055000+00:00
Original source

How to fix that?
`Could not find FallObject with GUID GameObject-0-1-1-0-555555-000000000AD`
What do i need to use to have the right guid instead of that line?
Edit:
I can't use `me->GetGUID().GetCounter()` in `despawnedObjects.push_back(HERE);`
How to solve this?

rektbyfaith
Administrator
0
08-28-2024, 02:31 AM
#2
Archived author: Northstrider • Posted: 2024-08-28T02:31:35.672000+00:00
Original source

if you want to respawn a gameobject you have to store its spawnId, not guid. the guid is the id of the currently spawned gameobject on this map. once it despawns, that Id is no longer valid. SpawnId on the other hand is the DB id which you can use to access spawndata
rektbyfaith
08-28-2024, 02:31 AM #2

Archived author: Northstrider • Posted: 2024-08-28T02:31:35.672000+00:00
Original source

if you want to respawn a gameobject you have to store its spawnId, not guid. the guid is the id of the currently spawned gameobject on this map. once it despawns, that Id is no longer valid. SpawnId on the other hand is the DB id which you can use to access spawndata

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)