This code works very nice, I was looking for it too.
I have a question regarding to this code.
How can I make the player jump.
(By space key for example)

Right now I have this in my player action:

Code:
VECTOR vFeet;
var dist_to_ground; 
vec_for_min(vFeet,me);


And this above in in the WHILE loop which the player movement is in.

Code:
result = c_trace(my.x, vector(my.x,my.y,my.z-5000),IGNORE_ME | IGNORE_PASSABLE | USE_BOX);
if (result > 0)
	dist_to_ground = my.z + vFeet.z - target.z;
else
	dist_to_ground = 0;


So how can I make this work with jumping?

Last edited by NL_3DGS_n00b; 06/19/08 19:13.

The best games are the games you create yourself.