ZombieSquirrel
Member
Hi everyone.
I have an NPC that walks along multiple paths between rooms. Each rooms has its own path.
Basically, if one path ends, the next one begins. This ensures that once the NPC is at the door, its
"inside" path properly ends, and the "outside" path can only begin if the first one ended.
Now, what I need to do, is have the NPC stop for a while along the first path. I've been searching and searching and I can't get it to work, except when I figure out the path_position. I can also get it to work at specific x and y coordinates of the NPC, but that doesn't help me because the next step would be to stop the NPC in his path ifi the player "talks" to him, meaning x and y along a path need to be paused and need to be dynamic.
Just figuring out the path_position is a pain as it is a float between 0 and 1, but it works. However, that won't work if it needs to be dynamic. Some pause points are static, like specific room coordinates, other pause points need to be dynamic, like wherever the NPC is when the player talks to him.
I came to the conclusion that I need to dynamically , ingame find a way to pause the path_position. To my surprise, there is no easy function for this. There has to be a way right?
This seems like SUCH a common thing to do that it can't be that hard.
I have an NPC that walks along multiple paths between rooms. Each rooms has its own path.
Basically, if one path ends, the next one begins. This ensures that once the NPC is at the door, its
"inside" path properly ends, and the "outside" path can only begin if the first one ended.
Now, what I need to do, is have the NPC stop for a while along the first path. I've been searching and searching and I can't get it to work, except when I figure out the path_position. I can also get it to work at specific x and y coordinates of the NPC, but that doesn't help me because the next step would be to stop the NPC in his path ifi the player "talks" to him, meaning x and y along a path need to be paused and need to be dynamic.
Just figuring out the path_position is a pain as it is a float between 0 and 1, but it works. However, that won't work if it needs to be dynamic. Some pause points are static, like specific room coordinates, other pause points need to be dynamic, like wherever the NPC is when the player talks to him.
I came to the conclusion that I need to dynamically , ingame find a way to pause the path_position. To my surprise, there is no easy function for this. There has to be a way right?
This seems like SUCH a common thing to do that it can't be that hard.