Game Development Community

SetMoveDestination's failure to return to it's starting point

by Ronald V Rieger · in Technical Issues · 08/20/2007 (1:59 pm) · 1 replies

I probably am missing something obvious, but when I use "setMoveDestination" (TGE) to move my bot to a position, the bot will go to different locations depending on where he starts. As an example, I can move him to, say, "30.0 -440.0 1.0", send him to "30.0 -447.0 1.0", and then attempt to send him back to "30.0 -440.0 1.0", but he will head off and go to a different location.

I am new to TGE, so any thoughts on how to correct this rather annoying issue would be very much appreciated.

I have not used any forum before, and may have posted this to the wrong forum. If so please let me know and I will post it elsewhere.

Thank you for your time.

#1
05/18/2008 (10:28 am)
SetAimLocation ( 30.0 -440.0 1.0 ) can be used to set the bots new location to go to 30.0 -440.0 1.0

setMoveDestination ( 30.0 -440.0 1.0 ) will make the bot move to that location.
After it reaches that spot the xyz is cleared so you'll need to reset with setAimLocation again.