Button
Run
name = "Run"
icon_state = "button-run"
animation = "run"
cooldown = 0
I'm new here and i try to learn ty. Ok, so i have this button and a var
mob
var
base_speed = 3
Code:Run button
Button I'm new here and i try to learn ty. Ok, so i have this button and a var mob |
In response to Boubi
|
|
i'm new didint know how to do it :-? tryed 10 times :)))
BUT i tryed for 3 days to do it and dunno how, after i read your post 15 times i had an ideea with sleep(), and WORKED ! THX mate ! Button |
Your sleep(1.5) would only round either up or down, I forgot on my part, unless you've changed the world.tick_lag. I don't know how makeit(mob/user) is called, but what you're doing in the proc is practically pointless, if you think about it. This would only work for 1.5 seconds, unless that's how you want it to be.
This is what I meant when I posted what I posted: Button/Run |
In response to Boubi
|
|
"This would only work for 1.5 seconds"
This is the point , cuz is a macro button for a run command , you press -> you run(even if is 1.5 seconds) / stop pressing -> you walk . And if you press continue , the character will have basee_speed = 8 -> 1.5 + 1.5 .... ( hou much you press ) , if you stop pressing base_speed come back to 3 |
usr.base_speed = usr.base_speed == 3 ? 8 : 3