[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:20:11.266000+00:00
Original source
are dead creatures actually removed from the world? if they're permanent spawns, I don't think they are.
Archived author: KJack • Posted: 2023-05-25T07:20:20.810000+00:00
Original source
summoned creatures would be
Archived author: Anchy • Posted: 2023-05-25T07:20:31.984000+00:00
Original source
I think they turn invisible? from what I have observed with GM on
Archived author: Anchy • Posted: 2023-05-25T07:20:32.592000+00:00
Original source
lol
Archived author: KJack • Posted: 2023-05-25T07:20:53.660000+00:00
Original source
that sounds right. so maybe store their GUID but do an `IsDead()` check before altering them.
Archived author: KJack • Posted: 2023-05-25T07:21:05.076000+00:00
Original source
summoned creatures would need to be removed from the list for sure though
Archived author: Anchy • Posted: 2023-05-25T07:21:16.975000+00:00
Original source
good luck with that
Archived author: Anchy • Posted: 2023-05-25T07:21:20.856000+00:00
Original source
I have to go out
Archived author: KJack • Posted: 2023-05-25T07:21:21.585000+00:00
Original source
lol, thanks!
![[Image: image.png?ex=690c5c71&is=690b0af1&hm=d5b...f52933181&]](https://cdn.discordapp.com/attachments/284323424032129024/1111209446102810674/image.png?ex=690c5c71&is=690b0af1&hm=d5b72c0d888c138e1aadd46e60f307cc50b454cad3fdc690c917a45f52933181&)
Archived author: KJack • Posted: 2023-05-25T08:29:37.287000+00:00
Original source
<@228769085834395648> great idea, working well. i can easily store a list of pointers to the creatures in a map. and it looks like they're all "added to world" from the beginning, even with the player a distance away.
![[Image: image.png?ex=690c5c71&is=690b0af1&hm=d5b...f52933181&]](https://cdn.discordapp.com/attachments/284323424032129024/1111209446102810674/image.png?ex=690c5c71&is=690b0af1&hm=d5b72c0d888c138e1aadd46e60f307cc50b454cad3fdc690c917a45f52933181&)