Solved Particles only at feet of player

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

LoneElf

Active Member
Apr 30, 2017
165
2
18
So, how would I make particles spawn only at the player's feet, not everywhere else, scattered? I want to make a /trail command where it trails particles right at your feet, basically on the block, but showing. Here is my code:
code_language.skript:
command /particles:
    trigger:
        if {enabled.%player%} is false:
            set {enabled.%player%} to true
            message "&7Particles&8> &7Particles has been Enabled!"
        else:
            set {enabled.%player%} to false
            message "&7Particles&8> &7Particles has been Disabled!"
        while {enabled.%player%} is true:
            set {location.%player%} to location of player
            drawDot count 1, particle "fireworkspark", XYZ 1, 1, 1, center {location.%player%}, visibleRange 32
            wait 3 ticks

Now, on the skUnity docs, it says that if you set a variable to the location of the player, it sets it to the feet. When I do this, some particles are spawned near the middle of the player. Also, some are scattered around the ground, making it not like a player. Some are to the left and some to the right and some to the middle. I need it to be exactly in the middle where the player walks. I am not sure how to do this, also, I am new to particles. Thanks :emoji_slight_smile:

EDIT: I fixed it myself. I removed the XYZ 1, 1, 1 which seamed to fix it. It is that which caused the scattering. Thanks :emoji_slight_smile:
 
try and do just center player instead of setting a location, and then decrease the size of the XYZ portion. decimals like .5 do work and could possibly stop stray particles from spawning farther out
 
Status
Not open for further replies.