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