And one more thing, I used the following code for a walljump, but it's not working:
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?
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?