How to determine if the character can jump or not

Blitz3D Forums/Blitz3D Beginners Area/How to determine if the character can jump or not

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

And one more thing, I used the following code for a walljump, but it's not working:
If bbKeyHit(bbkey_x)
bbLinePick(bbEntityX(character),bbEntityY(character),bbEntityZ(character),0,0,1.2)
  If onground(character) = 1 Then charyspd = 0.5
    If bbPickedEntity()<>0
      charyspd = 0.5
    End If
End If


Basically, I wanna test if there's a wall in front of it, and if so, allow it to walljump. The first test is for normal jumping, and the picked entity part of it is for the walljump. Why is it not working?