Help with particle projectile speed

  • 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.

ThePraZ

Member
Feb 20, 2017
37
1
8
Skript Version: 2.1.2
Skript Author: Njol
Minecraft Version: 1.8

---
Full Code:

code_language.skript:
on leftclick:
    if name of player's tool contains "&9[&2Avada Kedavra&9]":
        if {avadakedavra.%player's uuid%} is 1:
            if {varita.%player's uuid%} is -1:
                cancel the event
            else if {varita.%player's uuid%} is 0:
                message "&3Avada Kedavra!"
                play raw sound "mob.wither.death" at player with pitch 1 volume 10
                set {_uavadakedavra} to "AVADAKEDAVRA||%player%||%new uuid%"
                register new particle projectile using particle happy villager {_uavadakedavra}
                set start location of {_uavadakedavra} to location of player's head
                set particle count of {_uavadakedavra} to 2
                set x offset of {_uavadakedavra} to .0
                set y offset of {_uavadakedavra} to .0
                set z offset of {_uavadakedavra} to .0
                set particle speed of {_uavadakedavra} to 3
                set tps of {_uavadakedavra} to 0.0001
                set gravity of {_uavadakedavra} to 0
                set projectile type of {_uavadakedavra} to stop on both
                make player shoot particle projectile {_uavadakedavra} with speed 0.6
                set {_pavadakedavra} to location of player's head
                while distance between current location of {_uavadakedavra} and {_pavadakedavra} is less than 30:
                    if running state of {_uavadakedavra} is false:
                        stop
                    wait 5 ticks
                stop particle projectile {_uavadakedavra}

Errors on Reload: nothing

Console Errors: nothing (if applicable)

Other Useful Info:

Addons using (including versions):
Umbaska 2.0 Beta 5.0541, SkQuery 3.21.4

Troubleshooting: I want to know how can I do the projectile very very fast like instantly but without editing the projectile speed, like changing the particle tps

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
 
Last edited:
Status
Not open for further replies.