Jump to content

Detecting when the player lands on the ground Skript


Recommended Posts

Hi! I'm trying to detect when the player lands, (like the title suggests).

If it helps, I'm pushing the player in the air, and then pushing them back down to make an explosion when they land.

on offhand switch:
  if {Bakugo} contains player:
    cancel event
    if {BakugoMoveset} contains 2:
      if {BakugoExplode2} is true:
        send action bar "<##FF5700>&lBlast Down on cooldown!" to player
      else:
        set {BakugoExplode2} to true
        push player up with speed 0.5
        wait 0.3 second
        push player up with speed -1
        # (Right here is where I wanna wait for the player to land and detect when they do so)
        create an explosion of force 4 at {Bakugo}
        push player up with speed 1
        wait 6 seconds
        send action bar "<##FF5700>&lBlast Down Ready!" to player
        set {BakugoExplode2} to false

Anything helps! Thanks!

Link to comment
Share on other sites

  • 1 month later...

Try using something like 'on step on dirt: etc might  take time but if you making a box or smh not a smp should't be too hard

 

or use on any move: & checking block under player

 

Also dont use {bango} or whatever it will be buggy rather use something like {cooldown%player's uuid%}

so each player got a diff cooldown to stop 1 player from using it which could stop all players using it

 

Link to comment
Share on other sites

Please make sure that you aren't responding to posts that haven't been responded to in over a month. Thanks!

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...