Solved Particles trailing custom projectile

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

redbrain

Member
Jan 2, 2021
1
0
1
I'm trying to get particles to trail a snowball thrown from a custom event.
This code makes flame particles spawn at the snowball, but they quickly move away from the snowball in the direction of +x, +y, +z.
Code:
on left-click using gunpowder:
    shoot snowball at speed 2
on shoot:
    projectile is a snowball:
        loop 20 times:
            show flame on projectile
            wait 1 tick
How can I fix the code to make the particles stay at the spot they were spawned?
In addition, is it possible to get it all into the "on left-click" event? That way, I can use multiple different items to shoot snowballs with different particle trails.
Thanks in advance.
*Edit 1: Edited for clarity and formatting.
[doublepost=1609618314,1609606916][/doublepost]Ended up using SkQuery.
 
Status
Not open for further replies.