[DiscordArchive] So I have an NPC in each zone to apply / remove a zone wide buff to all players. But if the player i
[DiscordArchive] So I have an NPC in each zone to apply / remove a zone wide buff to all players. But if the player i
Archived author: sudlud • Posted: 2023-12-03T14:22:54.763000+00:00
Original source
So I have an NPC in each zone to apply / remove a zone wide buff to all players. But if the player is at the other end of the zone the npc might not be loaded so the NPC script is not running?
Archived author: sudlud • Posted: 2023-12-03T14:23:21.355000+00:00
Original source
so what could I do here
Archived author: Bench • Posted: 2023-12-03T14:23:50.468000+00:00
Original source
*Might* be able to get away with SetActive since it's a world event and thus limited duration
Archived author: Rymercyble • Posted: 2023-12-03T14:23:51.108000+00:00
Original source
im pretty sure u need to load maps
Archived author: sudlud • Posted: 2023-12-03T14:25:05.146000+00:00
Original source
Yeah that was one idea but then I remembered gultask saying it should be avoided also if the NPC is not loaded who is setting him active
Archived author: sudlud • Posted: 2023-12-03T14:25:26.703000+00:00
Original source
You mean preload all maps?
Archived author: Bench • Posted: 2023-12-03T14:25:59.812000+00:00
Original source
Gultask is right, aside from things with a limited lifespan, SetActive should be avoided, but since world event, I personally would say it qualifies, but might just be me
Archived author: sudlud • Posted: 2023-12-03T14:26:20.772000+00:00
Original source
Alright I’ll see if I can make it work
Archived author: Bench • Posted: 2023-12-03T14:26:48.127000+00:00
Original source
Don't have an answer for the who is doing it part, I've no experience with it
Archived author: Rymercyble • Posted: 2023-12-03T14:35:54.902000+00:00
Original source
yes bcs when maps are not loaded so are not npcs and nothing happens outside where is player