Jump (Beginner Question)
by Carlos Beltran · in Torque 3D Professional · 02/28/2011 (12:59 pm) · 2 replies
hi,
I am developing a multiplayer game which is not a fps, In my server code I have this
I am not going to use the mouse, so I have my binds and I replaced the binds that it had. I also use commands to server for movement. But what I am trying to do is a command to server that makes my player to jump. I do not know how to do it. If someone can help me I would be very grateful.
Thanks in advance and sorry for my english.
I am developing a multiplayer game which is not a fps, In my server code I have this
%client.camera.setOrbitObject($SpawnObject, mDegToRad(50) @ " 0 0", 0, 20, 20);so the camera is always following the player.
I am not going to use the mouse, so I have my binds and I replaced the binds that it had. I also use commands to server for movement. But what I am trying to do is a command to server that makes my player to jump. I do not know how to do it. If someone can help me I would be very grateful.
Thanks in advance and sorry for my english.
About the author
#2
Is this ok?
I put This code in the player.cs file, in the server folder.
03/01/2011 (4:24 am)
Hi Bryan, Thanks for your reply. I tried to do that and it did not worked. What I am doing now is this:%player.applyImpulse( %player.getPosition(), "0 0 1000" );
Is this ok?
I put This code in the player.cs file, in the server folder.
Torque 3D Owner Bryan Sawler
muteki corporation
moveMap.bind( keyboard, space, jump );
and that jump function just does:
function jump(%val)
{
$mvTriggerCount2++;
}
Hence, trigger2 is the jump button...