Solved How do I aim an arrow at a player?

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

Dogloverblue

Member
Sep 24, 2020
14
2
3
23
I need help with a skript in which I shoot an arrow at the player, but nothing seems to work, can someone help?
heres my code:

Code:
every 5 seconds in "world":
  set {_loc} to location -57, 71, -179 in "world"
  loop all players in radius 10 around {_loc}:
    wait 0.2 seconds
    shoot a arrow from {_loc} at speed 0.4 direction from {_loc} to loop-player
 
This seems to work for me, are you sure that the arrow is being shot above the ground? Do you have SkQuery installed?
 
Last edited:
Yeah, i was being dumb and forgot to install Skquery, I realized about an hour after I posted, but I forgot to mark as Solved, Thanks for the help anyway :emoji_slight_smile:
 
Last edited:
Status
Not open for further replies.