Jump to content

Detecting when the player lands on the ground Skript


Recommended Posts

Posted (edited)

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!

Edited by Krusade
Link to comment
Share on other sites

Moved to Skript category. The Help category is for general help, Skript forum for Skript help and so on. 

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...