Page 1 of 1

How do i modify the run speed of one character

Posted: Thu Jul 07, 2022 5:42 pm
by Saric
I'm trying to modify the speed of toad in lunalua

Re: How do i modify the run speed of one character

Posted: Thu Jul 07, 2022 5:57 pm
by Chilly14
You can use Defines.player_walkspeed and Defines.player_runspeed like so:

Code: Select all

function onStart()
	if player.character == 4 then
		Defines.player_walkspeed = 6
		Defines.player_runspeed = 9
	end
end
Also, questions like this should go in LunaLua Help.

Re: How do i modify the run speed of one character

Posted: Thu Jul 07, 2022 6:01 pm
by Saric
Thanks, a lot