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 Problem with skript directions.

Discussion in 'Skript' started by uGim, Jan 19, 2018.

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

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    I am a beginner at skript and I have been trying to make a command which makes the player shoot an arrow to all nearby players. I have tried many ways of doing this command and I have searched tons of sites and threads for this "direction problem" and I haven't found answer.

    So the error says "loop-player is not a direction" and I know what it means but I don't know any other way to do this than "push last spawned arrow at LOOP-PLAYER <-(which is not direction)". Sorry for my bad english but I wish someone would help me with this small problem.

    This is what my skript looks like:

    command /arrow:
    trigger:
    loop players in radius 6 around player:
    set {_loc} to block above player
    spawn an arrow above {_loc}
    push last spawned arrow at loop-player at speed 10
    wait 1 tick
     
  2. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    vectors!
    Code (Skript):
    1. set {_v} to vector between player and loop-player
    2. push last spawned arrow {_v} at speed 10
     
  3. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Thank you so much it works! I am glad you helped me with this problem!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...