I need to find out how long does it take to walk between two waypoints. I know that it could be quite complicated for non-linear paths but for keeping it simple we assume that there's clear straight path between waypoints or if waypoints are on area transition then time equals zero.
Can I simple measure the vector between them and divide it by 1.75(assuming that speed of running creature is 3.5 meter per second so for walk it should be divided by 2). Logic says that it should give me pretty accurate results, but is it that simple or should i just run some timer and allow the npc to walk that distance and measure it? (need few dozens of that so would be great if I can get that just by math).
Also I'm looking for some simple way for walking npcs algorithm, but ActionMoveToLocation is not recommended, right? But I want to avoid placing dozens of waypoints manual so i though about storing location by area name and coordinates and then force npc to walk to that point. Using that way with database I can store thousands of waypoints and easy manage them without having to edit module, just need some wand for adding point to database.
Is it even possible?





Retour en haut






