Triple Shot

Discussion in 'Plugin Development' started by chasertw123, Sep 1, 2014.

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

    chasertw123

    Hi I just need a little help figuring out a formula for three arrows to fire in certain directions. For example when a player right clicks with their bow it fires one arrow straight and the other two like 10 degrees in the positive and negative. I have been trying to figure out a way to do this for a week now. But since I couldn't I shall turn to the community.
     
  2. Offline

    hintss

    positive and negative up/down or left/right?
     
  3. Offline

    mythbusterma

    chasertw123

    Add a small X or Z component to the velocities of the two arrows that are off center.
     
  4. Offline

    hintss

    and then watch it fail when the player faces a different direction
     
  5. Offline

    mythbusterma

    hintss

    You could add the factors based on the size of the velocity in that direction, and apply that to both X and Z, which should work.
     
  6. Offline

    hintss

    I know, I was just being silly
     
Thread Status:
Not open for further replies.

Share This Page