Double Jump!

  • 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.

Congraz

Member
Oct 26, 2018
45
0
0
22
Hallo everyone.

I got a problem with an Double Jump Skript. Ehmm i dont know how to do it right. But when i enter a region the doublejump come active, but i cant jump so high, and cant figut it out.
code_language.skript:
on region enter:
    if "%region at player%" contains "spawn":
        if {doublejump.%player%} is not set:
            set {doublejump.%player%} to true
            set player's flight state to true
        else:
            delete {doublejump.%player%}
            wait 3 ticks
            set player's flight state to false
on flight toggle:
    player's gamemode is not creative
    if {doublejump.%player%} is set:
        cancel event
        if {canjump.%player%} is not set:
            set {canjump.%player%} to false
            wait 1 ticks
            push player upwards at speed 3
            wait 3 ticks
            push player forwards at speed 2
            wait 1 ticks
            delete {canjump.%player%}
on damage of player:
    if {canjump.%victim%} is false:
        cancel event
 
Status
Not open for further replies.