Game Development Community

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

by Ronald V Rieger · in Technical Issues · 08/20/2007 (1:58 pm) · 4 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
08/20/2007 (4:11 pm)
You shouldnt be posting the same thing twice.
#2
08/20/2007 (4:34 pm)
My mistake (lack of experience). Any thoughts on where this should be posted?
#3
08/21/2007 (1:37 am)
This should have been in the regular tge discussion area. that said...

Have you looked at the AI example in starter.fps? There, Kork runs a path. If that isn't much help, you may check out one of the resources for AI. They all have the bot returning to it's starting point when it loses sight of the enemy.
#4
08/21/2007 (10:48 am)
Thank you for your thoughts. I wasn't sure were this should go.

Normally, in the examples I have seen including starter.fps, predefined paths and path markers are used, where what I am doing is changing the path "on the fly". The examples do come back to the starting point, though, so I will take another look to see if I can't emulate more closely what they are doing.

Thanks again.