Solved Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Ventura11

Member
Feb 6, 2019
14
0
1
21
command /speed [<text>]:
trigger:
set the arg-1's walk speed to 0.2

Does not work.
Can you help me?
 
Last edited:
yes, im gonna fix ur code but next time please put code in codeblocks that makes code easy to read
[doublepost=1587457782,1587457377][/doublepost]
Code:
command /321 <player>:
    trigger:
        execute console command "speed walk 0.2 %arg-1%"
You need essentials plugin to make it work, Skript's set walk does not work with values lower than 1
 
yes, im gonna fix ur code but next time please put code in codeblocks that makes code easy to read
[doublepost=1587457782,1587457377][/doublepost]
Code:
command /321 <player>:
    trigger:
        execute console command "speed walk 0.2 %arg-1%"
You need essentials plugin to make it work, Skript's set walk does not work with values lower than 1

WTF why use console commands???

The problem is that he tryed to set the speed of a text instead of a player...


Code:
command /speed [<player>]:
    trigger:
        set the arg-1's walk speed to 0.2
 
WTF why use console commands???

The problem is that he tryed to set the speed of a text instead of a player...


Code:
command /speed [<player>]:
    trigger:
        set the arg-1's walk speed to 0.2
it's glitchy in skript i tried that and it will set ur speed to 1
 
it's glitchy in skript i tried that and it will set ur speed to 1

Uhhh let me see
[doublepost=1587663916,1587660452][/doublepost]
it's glitchy in skript i tried that and it will set ur speed to 1

Its not glitchy. The default walk speed is 0.2 .

The speed range in spigot is from -1 to 1 with values below 0 reverses ur direction. (Didn’t test this but thats what spigot says).

Essentials modifys the input of the user. If u want to use the Skript method u would have to modify it too.

Note!: default walk speed is 0.2 but fly speed is 0.1 .

Something like:

Wants = 0(no speed) 1(default speed) 5(max speed)

Actualy = 0(no speed) 0.2(default speed) 1(max speed)

Realspeed = input * 0,2

Sources:

https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setWalkSpeed-float-

https://github.com/SkriptLang/Skrip...ava/ch/njol/skript/expressions/ExprSpeed.java

https://github.com/EssentialsX/Esse...arth2me/essentials/commands/Commandspeed.java
 
Status
Not open for further replies.