i've been coding smth with Stop Flight player event for a few hours only to realise it tests for creative flight not elytra flight (the icon confused me) and now i'm sad lol. maybe there's a way to do that and i just don't know about it?
I’ve found this solution since i opened the thread, but i didn’t implement it bc last time i tried to make an infinite loop it threw an error. Is that actually how it’s done?There is a pretty simple way of doing this, although not a player event. If you constantly check the If Player: Is Gliding, and check when it is no longer true, you can detect when they land.
I’ve found this solution since i opened the thread, but i didn’t implement it bc last time i tried to make an infinite loop it threw an error. Is that actually how it’s done?
excuse me, did you read my first post? StopFly is about creative flight, i’ve tested itI believe you can simply have code on Player Event StopFly, since it's not related to creative mode flying but elytra flying.
oh thank you!Whoops. That's what I get for quickreading in school.
Player Event Join → Start Process elytracheck
PROCESS elytracheck
Repeat forever {
Control Wait (1t) /Prevent getting stopped by lagslayer while waiting for the player to glide
If Player (Is Gliding) { /Check if the player is gliding
Repeat While (If Player (Is Gliding)){
Control Wait 1t /Wait for the player to stop gliding
}
<Insert code here that you want to run upon the player stopping flight>
}
}