How to make AI Player fire or jump?
by Nocera Luciano · in Torque Game Engine · 09/23/2006 (1:03 am) · 1 replies
I creat AI player as follows:
$player = aiAddPlayer("ABC");
aiAddPlayer is defined in aiClient.cc as ConsoleMethod. I can use other console functions or methods like move(), setMoveDestination(%location), etc. However, I can not find how to make AI Player to shoot, jump or aim at some thing or some direction from the provided functions in aiClient. Does any one know how to do it?
Also, I creat AI using AIPlayer:
$player = AIPlayer::spawn("ABC",%location);
But I still cannot find how to make AI fire, jump or aim by this way. There is a fire() function when .dump(). But it displays nothing when I use it.
Thanks for help in advance!
$player = aiAddPlayer("ABC");
aiAddPlayer is defined in aiClient.cc as ConsoleMethod. I can use other console functions or methods like move(), setMoveDestination(%location), etc. However, I can not find how to make AI Player to shoot, jump or aim at some thing or some direction from the provided functions in aiClient. Does any one know how to do it?
Also, I creat AI using AIPlayer:
$player = AIPlayer::spawn("ABC",%location);
But I still cannot find how to make AI fire, jump or aim by this way. There is a fire() function when .dump(). But it displays nothing when I use it.
Thanks for help in advance!
Torque Owner Richard Muniak
http://tdn.garagegames.com/wiki/Torque/Script/Tutorials/Using_Basic_AI_Commands
Maybe it has what you are looking for?