[DiscordArchive] I see - are waypoints gameobjects or something?
[DiscordArchive] I see - are waypoints gameobjects or something?
Archived author: Foe • Posted: 2023-06-11T20:12:51.058000+00:00
Original source
Yeah that's the correct way to do it in that case
Archived author: ritzmenardi • Posted: 2023-06-11T20:13:24.663000+00:00
Original source
Okay shouldn't be too hard
Is there a way to send an event or something when an NPC reaches the end of their MoveTo() path? It'd make it a looooot easier
Archived author: ritzmenardi • Posted: 2023-06-11T20:13:36.764000+00:00
Original source
Maybe a custom LUA event?
Archived author: Foe • Posted: 2023-06-11T20:13:53.681000+00:00
Original source
You handle that by the id's
Archived author: Foe • Posted: 2023-06-11T20:14:18.936000+00:00
Original source
Every time it reaches the point you are moving to, the waypoint reached event is triggered
Archived author: Foe • Posted: 2023-06-11T20:14:40.439000+00:00
Original source
Then you just check with the id what path it just finished was and trigger the next
Archived author: ritzmenardi • Posted: 2023-06-11T20:15:22.233000+00:00
Original source
Oh I see! So MoveTo() creates a waypoint? I didn't realize that, good to know
Archived author: Foe • Posted: 2023-06-11T20:15:42.731000+00:00
Original source
Not really, it just triggers the event when it's reached
Archived author: ritzmenardi • Posted: 2023-06-11T20:16:02.181000+00:00
Original source
Hmmmm, well for my purposes that'll be enough. Thank you ❤️