// we are at the ledge and the result is greater than zero
if(result > 10 && you)
{
//check to make sure we have hit the target
//and we have the correct ledge
if(you.skill100 == 1502 && HIT_TARGET)
{
my.z = you.z + 50;
clamp(my.x,you.x,50);
ent_animate(me,"ledgeShimy",NULL,0);
if(key_r == 1 || key_l == 1)
{
my.ANIMATION += 5* time_step;
// my.ANIMATION %= 100;
ent_animate(me,"ledgeShimy",my.ANIMATION,ANM_CYCLE);
}
//small check points as of now to debug our results
//draw_point3d(hit.x,vector(50,50,255),100,3);
draw_text("Wall Hit...",10,10,vector(50,50,255));
}
}