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.
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.
About the author
#2
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.
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!
Torque 3D Owner Stephen Zepp
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.