Discord Thread How to make a particles spawn from player's tool/ chest rather than feet.

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
code_language.skript:
set {_v} to vector from player to target entity
            set vector length of {_v} to 0.1
            set {_loc} to location of player
            set y of {_v} to 5
            loop (distance between {_loc} and target entity) / 0.1 times:
                draw 1 dust_color_transition using dustTransition(white, cyan, 3) at {_loc} with force
                set {_loc} to {_loc} ~ {_v}
                make the player shoot a snowball at speed 1.7 
            damage target entity by 5 hearts
            set {cooldown::%player's uuid%} to now
            play sound "entity.boat.paddle_water" with volume 5 and pitch 0.5 at player
I am trying to make it so that the vector spawns from the player's tool rather than just their feet. I looked at the vector tutorial and thought maybe setting the Y would help but that only changed the direction of where it was going to be upwards.

Posted by: toodles5856 from the skUnity Discord. View the thread on skUnity Discord here
 
Status
Not open for further replies.