you forgot IGNORE_PASSABLE in c_move
c_move(me, vector(distance,0,0), NULL, GLIDE | IGNORE_PASSABLE);
and here
function staff()
{
VECTOR wpos;
while(1)
{
set(my,PASSABLE);
vec_for_vertex(wpos, player, 23);
my.x = wpos.x;
my.y= wpos.y;
my.z = wpos.z;
my.pan = player.pan;
wait(1);
}
}
I would do the set(my,PASSABLE); before the while loop
like this
function staff()
{
VECTOR wpos;
set(my,PASSABLE);
while(1)
{
vec_for_vertex(wpos, player, 23);
my.x = wpos.x;
my.y= wpos.y;
my.z = wpos.z;
my.pan = player.pan;
wait(1);
}
}
WFG Progger