Do something until waypoint is reached
Posted: Sat Sep 22, 2012 7:11 am
Hi, is it possible do do any action until next waypoint is reached?
as alternative until player has reached coordinates x,y,z
Has anyone an idea how to do this?
Code: Select all
function jump()
keyboardHold(settings.hotkeys.MOVE_FORWARD.key)
repeat keyboardPress(settings.hotkeys.JUMP.key)
until --player has reached next waypoint--
end
keyboardRelease(settings.hotkeys.MOVE_FORWARD.key)
end
Has anyone an idea how to do this?