Specific point A to point B pathing for mobs
Posted: Wed Jun 17, 2020 16:21
Hello,
Just started using Minetest a few days ago. I'd like to have a stealth element where the player would have to sneak past guards. Instead of the guards just randomly wondering around as mobs generally do, I want the guards to take fixed routes, so that the player would have to time things right (like every stealth game). So the pathing would need to be something like:
move to coordinates 1 2 3
wait 3 seconds
look west
wait 3 seconds
look south
wait 3 seconds
move to coordinates 4 5 6
wait 3 seconds
look east
wait 3 seconds
look south
wait 3 seconds
repeat
I also would need the guards to not detect the player unless the player is in their line-of-vision. It seems like hostile mobs generally detect a player whenever they are within a few blocks of the mob, even with their backs turned (which makes me wonder what the point of "sneaking" is. Maybe PVP?).
Anyway, I was looking at the api in Mobs Redo, and apparently the pathfinding feature doesn't provide for this, it's simply 1 or 2 (pathing to the player or breaking certain nodes).
Can someone recommend a mob api that is suited to what I'm trying to do? I mean, maybe Mobs Redo would be fine, I just have no idea how to do it, since it's not addressed in the documentation.
Thanks!
Just started using Minetest a few days ago. I'd like to have a stealth element where the player would have to sneak past guards. Instead of the guards just randomly wondering around as mobs generally do, I want the guards to take fixed routes, so that the player would have to time things right (like every stealth game). So the pathing would need to be something like:
move to coordinates 1 2 3
wait 3 seconds
look west
wait 3 seconds
look south
wait 3 seconds
move to coordinates 4 5 6
wait 3 seconds
look east
wait 3 seconds
look south
wait 3 seconds
repeat
I also would need the guards to not detect the player unless the player is in their line-of-vision. It seems like hostile mobs generally detect a player whenever they are within a few blocks of the mob, even with their backs turned (which makes me wonder what the point of "sneaking" is. Maybe PVP?).
Anyway, I was looking at the api in Mobs Redo, and apparently the pathfinding feature doesn't provide for this, it's simply 1 or 2 (pathing to the player or breaking certain nodes).
Can someone recommend a mob api that is suited to what I'm trying to do? I mean, maybe Mobs Redo would be fine, I just have no idea how to do it, since it's not addressed in the documentation.
Thanks!