Solved Problem with skript directions.

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

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

uGim

Member
Jan 19, 2018
25
0
0
22
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
 
vectors!
code_language.skript:
set {_v} to vector between player and loop-player
push last spawned arrow {_v} at speed 10
 
Thank you so much it works! I am glad you helped me with this problem!
 
Status
Not open for further replies.