Having a spawn move along a path using
MoveToLocation resulted in the spawn teleporting around, especially if the distance between points was small. To fix this I have allowed MoveToLocation to build a path, there is now an optional bool parameter at the very end that is set to true it will not start the path letting you add more points. The final point in the path has to be false. If not included the parameter defaults to false so the function works the same as it always has.
Here is an example of building a simple path
Code: Select all
MoveToLocation(NPC, -2248.49, -44.91, 295.61, 2, "", true)
MoveToLocation(NPC, -2232.10, -45.97, 289.68, 2, "", true)
MoveToLocation(NPC, -2226.69, -46.02, 271.76, 2, "", true)
MoveToLocation(NPC, -2202.71, -46.43, 275.88, 2, "", true)
MoveToLocation(NPC, -2198.43, -46.72, 299.24, 2, "Move6")