Arrow Shotgun spread works incorrectly

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

TenToTu Sho

Member
Dec 30, 2019
20
2
3
23
So I've seen a post asking for a Shotgun spread with a bow, but I can't seem to make it work properly.
Code:
on shoot:
    shooter is a player
    set {_arrowSpeed} to {arrowSpeed::%shooter%} * 2
    set {_entity} to "%shooter%" parsed as entity type
    {trishot.dontshoot::%shooter%} is not true
    "%shooter%" = "tentotu"
    set {trishot.dontshoot::%shooter%} to true
    make shooter shoot arrow at velocity {_arrowSpeed}
    push last shot projectile left at speed 0.3
    make shooter shoot arrow at velocity {_arrowSpeed}
    push last shot projectile right at speed 0.3
    wait 1 tick
    clear {trishot.dontshoot::%shooter%}
It works just fine when shooting straight (north, west, east or south), but when i try to shoot diagonally (northwest, southeast, etc.) all of the arrow just go in weird locations, like this

pPcLNOi

[doublepost=1608995850,1608995817][/doublepost]the image: https://imgur.com/a/pPcLNOi
[doublepost=1608995915][/doublepost]how it works when shooting straight: https://imgur.com/a/zbC3p2z
 
Status
Not open for further replies.