Plz convert this, i need it for my program
y = terrainy( terrain, entityx(player), entityz(player))
tformpoint 0,0,steplength, player, 0
dy = terrainy( terrain, entityx(player)+tformedx(), entityz(player)+tformedz() ) ; height after the next step
if abs(y-dy) > maxStepHeight
; do not allow the step
endif
y = terrainy( terrain, entityx(player), entityz(player))
tformpoint 0,0,steplength, player, 0
dy = terrainy( terrain, entityx(player)+tformedx(), entityz(player)+tformedz() ) ; height after the next step
if abs(y-dy) > maxStepHeight
; do not allow the step
endif