1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Particles between 2 locations

Discussion in 'Skript' started by sandor_1234, Mar 2, 2017.

Thread Status:
Not open for further replies.
  1. sandor_1234

    sandor_1234 Active Member

    Joined:
    Jan 26, 2017
    Messages:
    165
    Likes Received:
    5
    I am tying to get a straight line off particles between to locations. but i can't find anything to get this to work.
    As far i know the drawline will just create a straight line without any delay so i can't use the drawline effect, the drawarc effect also doesn't have a delay option or something like this
    So it has to be something like this(This is not made using a skript but using another plugin):
    [​IMG]
    I tried looping the blocks between the player and the target block and than creating a drawdot effect at each loop-block but this wouldn't create 1 straight line.
    Code i used:
    Code (Skript):
    1. loop blocks from the block at the player to the target block:
    2.                 DrawDot count 10, particle "smokelarge", XYZ 0, 0, 0, center location of loop-block, visibleRange 320, pulseDelay 0, keepFor 1 second
    3.                 DrawDot count 2, particle "smoke", XYZ 1, 1, 1, center location of loop-block, visibleRange 320, pulseDelay 0, keepFor 1 second
    I also tried shooting an arrow and snowball to be able to let the drawdot effect the shot snowball/arrow but its pretty difficult to keep an arrow or snowball to go in a straight line.

    Any help or tips will be appreciated <3

    Maybe @Sashie can help :emoji_slight_smile:
     
  2. Best Answer:
    Post #2 by ShaneBee, Mar 3, 2017
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Are you trying to make a solid line from point to point? or appear shooting from the center? drawLine can do both depending on how you initialize it :3

    From the image it appears as though it's 'shooting'

    Code (Skript):
    1. drawLine particle redstone, RGB 0, 1, 1, center player, target location of target block, id "%player%", rainbowMode true, solid false, density 20, length 0, zigZag count 0, height 0, visibleRange 32, displacementXYZ 0, 1.2, 0, pulseDelay 1
    you'll see the 'solid' option in there somewhere and the density,with a length of 0 it will go from point to point but if length is greater than 0 then the line will only go out that far.
    the solid option makes it a solid line or if its false the line will 'travel' or 'shoot' towards the target
    also if you leave the target out of the effect it will just shoot in the direction the location is facing
     
    #2 ShaneBee, Mar 3, 2017
    Last edited by a moderator: Mar 3, 2017
    • Agree Agree x 1
    • Useful Useful x 1
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Can i also determine how many particles are shown when i use the shooting effect?
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    sort of, the density option should be able to give it more or less 'points' in the line
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    It doesn't really add more particles.
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    do you mean having more then one particle at a single point along the path?
    I would have to add that to the effect if that's what you mean :3
     
Thread Status:
Not open for further replies.

Share This Page

Loading...