Game Development Community

SetMoveDestination for player ?

by Orion Elenzil · in Torque Game Engine · 01/23/2006 (12:21 pm) · 3 replies

Hi all,

is there an equivelant of AIPlayer::SetMoveDestination() for Player ?

I'd like to use it in the future as part of click-to-navigate,
but right now i just want it for server load testing.

#1
01/23/2006 (5:31 pm)
No, there isn't, but with a little work you can re-implement the base functionality--I did it early on (2004 timeframe) as part of a self-designed click-to-navigate interface myself.

Basically, you'll want to re-activate the function that checks to see if an AIMove is available (it currently defaults returning false), and then re-wire a bit of the moveToDestination code to work with Player. Took me a couple of days as a brand new (2-3 month) Torque developer.
#2
01/24/2006 (4:00 am)
It's actually VERY simple:

Use an AiPlayer instead of a Player, and set your client control object to something else (the camera that is tracking the player will do - AdvancedCamera's godView mode is good for such interface). Poof! All AiPlayer commands will be avaliable to you.

If you're using a point-n-click interface, you should be not controlling the avatar directly anyway.
#3
01/24/2006 (9:09 am)
Interesting, thanks guys!