Game Development Community

How to make AI player jump?

by Nocera Luciano · in Torque Game Engine · 12/09/2006 (10:07 pm) · 4 replies

Could anyone tell me how to make AI player jump? In script level or C/C++ level. What command and parameters are required for a jump?

Thanks in advance!

#1
12/19/2006 (11:19 pm)
Some one recommend thsi:

%objId.setImageTrigger(2,true);

but the robot does not jump at all. I can let it shoot by

%objId.setImageTrigger(0,true);

Why jump does not work?

Does anyone know about it?
#2
12/21/2006 (5:57 pm)
Does the model have animation for jump?
#3
12/21/2006 (7:39 pm)
I think you actualy have to do some source changes.....search it
#4
12/22/2006 (2:21 pm)
It won't look as good as the player's jumping, but this should work.

function AIjump()
{
   AIName.setActionThread("jump");
   AIName.applyImpulse(NULL, "0 0 70");
}