HI!
I am trying to make my character walk up and down the stairs.
Code:
while(1)
{
vec_set(temp.x,my.x);
temp.z=-2000;
trace_mode=IGNORE_ME + IGNORE_MODELS + IGNORE_SPRITES+use_box;
dist_traced=c_trace(me,temp,trace_mode);
if(dist_traced>0)
{
c_move(me,vector(0,0,-10),nullvector,glide);
}
if(dist_traced<0)
{
c_move(me,vector(0,0,10),nullvector,glide);
}
//...and other movement commands
The tracing doesnt seem to work (dist_traced is 0 all the time)...
Could someone please tell me whats wrong?