You should really use the [ code ] <text> [ /code ] tags when inserting more than a few lines of code in your posts.
Anyhow, there is a command named
newZValue that you should be able to use like so:
newZPos# = newZValue(object position z(obj), object angle y(obj), stepValue)
position object obj, object position x(obj), object position y(obj), newZPos#
(Where
stepValue is the distance to move from the current position).
"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.