Page 1 of 1

MoveToLocation change

Posted: Thu Jun 07, 2018 7:47 pm
by Jabantiz
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")

Re: MoveToLocation change

Posted: Tue Jun 12, 2018 5:50 am
by Ememjr
Awesome hope this fixes the pathing issue i have on the Toturial Boat cant wait to get in to test it

Re: MoveToLocation change

Posted: Tue Jun 12, 2018 2:50 pm
by Jabantiz
Ememjr wrote: Tue Jun 12, 2018 5:50 am Awesome hope this fixes the pathing issue i have on the Toturial Boat cant wait to get in to test it
It should. I also did some other movement changes that over all has made movement smoother with far less warping.