Solved particle trail

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

loadka95

Active Member
Feb 24, 2017
78
6
8
26
is there any other way to make this??
trails a projectile with a particle effect

I tried this one from skquery, but its not working for me, its just plays 1 particle when i shoot a snowball and not trailing it. or im just doing it wrong??
code_language.skript:
on shoot:
    if projectile is snowball:
        trail projectile with particle spell
 
@loadka95

Skellett

code_language.skript:
on entity shoot:
    if event-entity is a player:
        #Arrow projectile:

        #Make it so bows will only shoot snowballs :P

        broadcast "%shot arrow%"
        spawn snowball at location above player
        #Skript doesn't have a proper way to define an entity. So I'm using this spawning method workaround.

        #I might make an effect to define a projectile and create data on top of that projectile, Like name etc.

        set shot projectile to last spawned snowball
        push shot projectile in direction of player at speed (arrow speed + 0.25)
        broadcast "%shot projectile%"
        
        #Playing around with some stuff :D

        spawn a pig at location above player
        set shot projectile to last spawned entity
        broadcast "&c%ground state of shot projectile%"
        push shot projectile in direction of player at speed (arrow speed + 0.5)
        while ground state of shot projectile is false:
            push shot projectile upwards at speed 0.15
            wait 2 ticks
        broadcast "%shot projectile%"

You can use that for your script
code_language.skript:
while ground state of shot projectile is false:
 
Status
Not open for further replies.