How to use vectors for custom 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!

I made this little script for you to hopefully help you understand vectors and particles more

code_language.skript:
command /summonarc:
    trigger:
        set {_loc} to player's location
        set {_v} to vector from yaw 0 and pitch -90
        set standard length of {_v} to 1
        loop 10 times:
            set {_loc} to {_loc} ~ {_v}
            draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
            rotate {_v} around x-axis by -5
            wait 5 ticks

All you would have to do to recreate the effect would be to create tons of arcs that all rotate off another vector towards a center point
 
I made this little script for you to hopefully help you understand vectors and particles more

code_language.skript:
command /summonarc:
    trigger:
        set {_loc} to player's location
        set {_v} to vector from yaw 0 and pitch -90
        set standard length of {_v} to 1
        loop 10 times:
            set {_loc} to {_loc} ~ {_v}
            draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
            rotate {_v} around x-axis by -5
            wait 5 ticks

All you would have to do to recreate the effect would be to create tons of arcs that all rotate off another vector towards a center point
How would I make the center of the vectors? sorry for the late reply
 
my idea is you could draw a vector away from the base of your feet and run the code from there and move it around in a circle. you would also have to rotate the vectors around a perpendicular vector to it faces the middle