Solved "Shoot" Particles?

  • 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 comminuty!

    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.

Elsmok

Member
Jul 3, 2017
25
1
0
so basically im just looking for a way to "shoot" a particle and on impact it damages or explodes ect using skDragon

I am also looking for a way for particles to home in on players, so they can't run from it, and again on impact it damages or explodes ect also using skDragon
 
Try drawLine.
Example:
code_language.skript:
drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target living entity, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
And for the explosion:
code_language.skript:
create a safe explosion of force 5 at {target.%player%}
loop all living entities in radius 4 around {target.%player%}:
damage loop-entity by 3
[doublepost=1499527887,1499527289][/doublepost]
code_language.skript:
if target living entity is set:
    loop 10 times:
        drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target living entity, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
        set {target.%player%} to location of target living entity
        wait 1.3 second
        create a safe explosion of force 5 at {target.%player%}
        loop all living entities in radius 4 around {target.%player%}:
            damage loop-entity by 3
            stop
if target block is set:
    loop 10 times:
        drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target block, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
        set {target.%player%} to location of target block
        wait 1.3 second
        create a safe explosion of force 5 at {target.%player%}
        loop all living entities in radius 4 around {target.%player%}:
            damage loop-entity by 3
            stop
        loop 10 times:
            drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 70, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
 
Try drawLine.
Example:
code_language.skript:
drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target living entity, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
And for the explosion:
code_language.skript:
create a safe explosion of force 5 at {target.%player%}
loop all living entities in radius 4 around {target.%player%}:
damage loop-entity by 3
[doublepost=1499527887,1499527289][/doublepost]
code_language.skript:
if target living entity is set:
    loop 10 times:
        drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target living entity, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
        set {target.%player%} to location of target living entity
        wait 1.3 second
        create a safe explosion of force 5 at {target.%player%}
        loop all living entities in radius 4 around {target.%player%}:
            damage loop-entity by 3
            stop
if target block is set:
    loop 10 times:
        drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target block, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
        set {target.%player%} to location of target block
        wait 1.3 second
        create a safe explosion of force 5 at {target.%player%}
        loop all living entities in radius 4 around {target.%player%}:
            damage loop-entity by 3
            stop
        loop 10 times:
            drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 70, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1

will this work with the drawDot effect in skDragon? Just wondering because with the drawDot effect you can sort of have more control over the particles
 
so basically im just looking for a way to "shoot" a particle and on impact it damages or explodes ect using skDragon

I am also looking for a way for particles to home in on players, so they can't run from it, and again on impact it damages or explodes ect also using skDragon
Using packets you can make the particle the whole projectile instead of them trailing the arrow, if you're interested
 
How can this be done
When someone shoots the special arrow, set a metadata value on it. Then, use mundosk packets to detect the spawn object packet and see if the entity being spawned has that metadata value, and if it does cancel the event.
 
When someone shoots the special arrow, set a metadata value on it. Then, use mundosk packets to detect the spawn object packet and see if the entity being spawned has that metadata value, and if it does cancel the event.
please can you show me an example xD i just started script last week
 
please can you show me an example xD i just started script last week
No, because that wouldn't be an example. You can find all the things I explained in the docs, excluding the packet name which can be found by broadcasting packettypes and finding it in the list, or you can look for the packet on PacketWrapper. The packet tutorial in the tutorial section here could also help you out
 
No, because that wouldn't be an example. You can find all the things I explained in the docs, excluding the packet name which can be found by broadcasting packettypes and finding it in the list, or you can look for the packet on PacketWrapper. The packet tutorial in the tutorial section here could also help you out
Ok thank you :emoji_grinning:
 
Status
Not open for further replies.