Nd_ Posted August 18, 2019 Share Posted August 18, 2019 So I have a Kit on my server which allows you to leap. The problem is that it will cause fall damage, so I added this skript. on damage: damage was caused by fall: if {%victim's uuid%.leaping} is true: set {%victim's uuid%.leaping} to false cancel event else: if {%victim's uuid%.leaping} is true: set {%victim's uuid%.leaping} to false The problem is that it cancels the event even when the event is false. There are no errors. Link to comment Share on other sites More sharing options...
LoveQux Posted August 20, 2019 Share Posted August 20, 2019 This is due to your indentation. pp Link to comment Share on other sites More sharing options...
Nd_ Posted August 21, 2019 Author Share Posted August 21, 2019 On 8/20/2019 at 2:10 PM, Custom said: This is due to your indentation. Where??? I tried reindenting it and it still didn't work? Link to comment Share on other sites More sharing options...
UwUnicode Posted August 23, 2019 Share Posted August 23, 2019 On 8/18/2019 at 1:30 PM, Nd_ said: So I have a Kit on my server which allows you to leap. The problem is that it will cause fall damage, so I added this skript. on damage: damage was caused by fall: if {%victim's uuid%.leaping} is true: set {%victim's uuid%.leaping} to false cancel event else: if {%victim's uuid%.leaping} is true: set {%victim's uuid%.leaping} to false The problem is that it cancels the event even when the event is false. There are no errors. I forgot who said it but you don't want to have a selector at the beginning of a variable. No idea if it affects anything though, just give it a shot. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now