Page 1 of 1

Do something until waypoint is reached

Posted: Sat Sep 22, 2012 7:11 am
by Ego95
Hi, is it possible do do any action until next waypoint is reached?

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
as alternative until player has reached coordinates x,y,z

Has anyone an idea how to do this?

Re: Do something until waypoint is reached

Posted: Sat Sep 22, 2012 7:57 am
by rock5
You are talking about doing actions during the moveto function. The only way I can think of is to use a timed event, similar to the timedattack function in player:fight()