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

Directional Spirals

Discussion in 'Skript' started by McAcrylic, Jul 12, 2018 at 12:24 PM.

  1. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    Basically, what I need help with creating a spiral in the facing direction.
    Something like this....
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]


    But instead of using blocks, replace it with particles. Basically a smooth spiral going towards a certain direction for x seconds. I have tried very inefficient methods, which either made the spiral not smooth, or glitchy.
     
  2. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    223
    Likes Received:
    7
  3. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    Well, Ive dived into the code of that skript, however, even though I am using the latest version of skript, functions do not work for me, and that is why i am trying to avoid using functions. If you were to be so kind and get me the code for what I need, it would be much appreciated!
     
  4. Efnilite

    Efnilite Well-Known Member

    Joined:
    May 12, 2018
    Messages:
    130
    Likes Received:
    3
    How do functions not work for you?
    You call functions by using
    Code (Skript):
    1. myFunction(player)
    2.  
    3. not:
    4. function myFunction(player)
     
    #4 Efnilite, Jul 12, 2018 at 1:42 PM
    Last edited: Jul 12, 2018 at 1:47 PM
  5. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    Lots of errors pops up
     
  6. Efnilite

    Efnilite Well-Known Member

    Joined:
    May 12, 2018
    Messages:
    130
    Likes Received:
    3
    Can you post them? And btw, what is your minecraft version
     
  7. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
  8. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    287
    Likes Received:
    14
    Medals:
  9. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    Resolved.

    I would assume the command was /sk update, to check the latest version but I was unaware of that command, thank you for your assistance!

    If anyone is looking for skript 2.2,
    https://www.dropbox.com/s/ltyitua0xp8xnt4/skript2.2.jar?dl=1
     
  10. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,244
    Likes Received:
    144
    Medals:
  11. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    287
    Likes Received:
    14
    Medals:
    Okay so you have the right version now? (the one @Donut sent)
     
  12. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    I already said I have it, anyways, back to the question
     
  13. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    287
    Likes Received:
    14
    Medals:
    If you have the latest version of Bensku's Skript fork and functions aren't working you should create an issue about it on the github page from Bensku's fork (so ONLY if you have 2.2-dev36)
     
  14. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    And again, I am pointing out the fact that I need help with my initial objective not this.
     
  15. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    287
    Likes Received:
    14
    Medals:
    And the answer to your problem is the SexyShapes script, which you can use by using functions, and for functions you need the latest version of Skript and if that version doesn't run functions you have to create an issue about it on the github page. Conclusion: get the latest skript fork version and use SexyShapes.
     
    #15 TPGamesNL, Jul 13, 2018 at 8:07 AM
    Last edited: Jul 13, 2018 at 10:08 AM
  16. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    I really have no experience with functions and it doesnt my question, how to make it so it spirals in the target direction
     
  17. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    287
    Likes Received:
    14
    Medals:
    My friend, if you don't know how to use functions in Skript, you can ask for that! There are enough examples for functions online. Also I don't really get why you want to refuse SexyShapes as a solution, because the only explanations you gave were that the functions weren't working. If they don't work, update your Skript version and if that doesn't work, as help about the functions. The solution to your problem has already been given here, but you just refuse to accept it. Even if you want to use SexyShapes but you can't, ask about that!
     
  18. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    Again, I have never avoided using SexyShapes, never ruled out of it.
    I initially asked for help to create these spirals, and the code would be much appreciated.

    FYI, I did say I am not very good with functions, and I would love if you showed me an example for SexyShapes.

    Specifically, I am looking for how to make these spirals with particles, if thats possible.
     
  19. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    287
    Likes Received:
    14
    Medals:
    Okay what particles do you want?
    --- Double Post Merged, Jul 13, 2018 at 10:43 AM, Original Post Date: Jul 13, 2018 at 10:34 AM ---
    I just went for smoke, you can change it if you want to (I already implemented and edited the SexyShapes script, you don't need to have it installed)
    Code (Skript):
    1. command /helix:
    2.     trigger:
    3.         set {_loc} to location of player
    4.         set {_radius} to 3
    5.         set {_angle} to 20
    6.         set {_ascend} to 12
    7.         set {_size} to 30
    8.         set {_locs::*} to helix2({_loc}, {_radius}, {_angle}, {_ascend}, {_size})
    9.         loop {_locs::*}:
    10.             play smoke on loop-value  
    11.            
    12. function helix2(location: location, radius: number, angle: number, ascend: number, size: number) :: locations:
    13.     set {_height} and {_current} to 0
    14.     while {_height} is less than {_size}:
    15.         add {_ascend} / (360 / {_angle}) to {_height}
    16.         add {_angle} to {_current}
    17.         set {_l} to {_location}
    18.         add (cos ({_current} / 180) * 3.14159265358979323846) * {_radius} to y-loc of {_l}
    19.         add {_height} to x-loc of {_l}
    20.         add (sin ({_current} / 180) * 3.14159265358979323846) * {_radius} to z-loc of {_l}
    21.         add {_l} to {_l::*}
    22.     return {_l::*}
     
  20. M

    McAcrylic Member

    Joined:
    Oct 21, 2017
    Messages:
    17
    Likes Received:
    0
    Finally! Thank you for your help!
     
    • Friendly Friendly x 1
Loading...
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Support skUnity

    The staff team works very hard to make sure the community is running its best. This means constantly performing upgrades to systems and other features. This does cost a bit of money to keep doing. Donating to skUnity would allow the server to keep running smoothly for years to come!

    Support Us!
  • Join our Discord

    Discord is an all-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone.