It was really nothing. what i did was to trace straight from 30 quant above the player origin. If ithit a wall, the code traces straight from 42 quants above the origin. If it hits nothing, the player grabs the ledge....

therefore it grabs a ledge if there is a wall below a certain point and no wall above it....a characteristic property of a ledge...

@ axys,
I did not say that there was anything wrong with the (movement_mode == 3) branch. It is absolutely necessary tostop the player getting stuck.What i said was that the first set of trace instructions in (movement_mode == 3) branch is unnecessary

However, That still doesnt aanswer my first question.....
1. What about grabbing a ladder from the top???