#Is Burning check not working

1 messages · Page 1 of 1 (latest)

drowsy tartan
#

I have this script inside of a function that runs every tick, but even when the player is on fire, nothing happens.

            set {_num} to a random integer between 1 and 50
            send {_num} to {_player}
            if {_num} = 1:
                extinguish {_player}

anyone have any ideas?

autumn lotus
#

why is this function being run every tick?

#

instead of just on ignite:?

drowsy tartan
#

I kind of want this to be running the whole time while the player is on fire, and I thought that on ignite: only ran once

slow heart
#

you can make it a while loop
when the on ignite event is called, you can use while player is burning and it will continue as a loop

drowsy tartan
#

oh yeah, thank you, I don't know how I didn't think about that

#

well I tried using both the while player is burning loop and on ignite: and neither of them were working for me. on ignite: kept giving me errors and while player is burning never worked when I was on fire

#

I don't know if this just isn't working for me or it doesn't work for anyone, but it seems like it should be working perfectly fine

autumn lotus
#

sorry

#

on ignite is for blocks