[DiscordArchive] can i trust that `OnCreatureAddWorld` only fires once per creature?
[DiscordArchive] can i trust that `OnCreatureAddWorld` only fires once per creature?
Archived author: KJack • Posted: 2023-05-25T07:17:18.734000+00:00
Original source
can i trust that `OnCreatureAddWorld` only fires once per creature?
Archived author: KJack • Posted: 2023-05-25T07:17:34.702000+00:00
Original source
or do i need to get some de-dupe fanciness going on?
Archived author: Anchy • Posted: 2023-05-25T07:18:13.280000+00:00
Original source
you can just store the guid of the creature and check if it already exists in your map
Archived author: Anchy • Posted: 2023-05-25T07:18:19.117000+00:00
Original source
then remove the guid when the creature is removed from world
Archived author: Anchy • Posted: 2023-05-25T07:18:27.863000+00:00
Original source
maybe
Archived author: KJack • Posted: 2023-05-25T07:18:36.447000+00:00
Original source
hah! it *sounds* plausible.
Archived author: Anchy • Posted: 2023-05-25T07:18:50.437000+00:00
Original source
I don't know much about the AllCreature scripts
Archived author: Anchy • Posted: 2023-05-25T07:19:16.773000+00:00
Original source
its important to note, each time the creature is updated it will re-modify the stats
Archived author: KJack • Posted: 2023-05-25T07:19:17.687000+00:00
Original source
that's a good idea, just storing the GUIDs and grabbing the Creature objects from those
Archived author: KJack • Posted: 2023-05-25T07:19:42.967000+00:00
Original source
might have some extra work to do for summoned creatures