SkDragon DrawDot doesn't disappear

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

sandor_1234

Active Member
Jan 26, 2017
165
5
0
When i use this code:
code_language.skript:
make player shoot a fireball at speed 1
                set {_fb} to shot fireball
                while {_fb} exists:
                    {_fb} is on ground:
                        stopEffect id "test"
                        stop
                    drawDot count 2, particle "crit", XYZ 0, 0, 0, center {_fb}, visibleRange 320, pulseDelay 0, keepFor 20 ticks
                    drawDot count 2, particle "witchspell", XYZ 0, 0, 0, center {_fb}, visibleRange 320, pulseDelay 0, keepFor 20 ticks
                    drawDot count 2, particle "cloud", XYZ 0, 0, 0, center {_fb}, visibleRange 320, pulseDelay 0, keepFor 20 ticks
                    drawDot count 2, particle "itemcrack", material diamond sword, XYZ 0, 0, 0, center {_fb}, visibleRange 320, pulseDelay 0, keepFor 20 ticks
                    wait 1 tick
The last spawned DrawDot won't go away after the fireball hit the ground
[doublepost=1486905808,1486905456][/doublepost]I found the problem isn't skdragon but the problem is that the loop never ends even if the fireball hits the ground an is away
[doublepost=1486905977][/doublepost]So my question is how to check if a fireball still exists?
 
You might look to the is alive condition and I wouldn't recommend to save entities on variables (it's quite glitchy), just use the shot fireball expression for all.
 
You might look to the is alive condition and I wouldn't recommend to save entities on variables (it's quite glitchy), just use the shot fireball expression for all.
The "is alive" condition didn't work.
[doublepost=1486907680,1486907496][/doublepost]changing {_fb} to shot fireball also didn't do anything :emoji_frowning:
Thanks for your suggestions
 
Status
Not open for further replies.