This is not going in the right direction

Discussion in 'Plugin Development' started by Gamesareme, Jul 23, 2014.

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

    Gamesareme

    I have this code.
    Code:
    bat.setVelocity(player.getLocation().getDirection().multiply(plugin.getConfig().getInt("Gadgets.BatGun.Velocity")));
    I want the bat to shoot in the direction the player is looking. While it does work for rotation it does not work for up or down. What needs changing to fix this?
     
  2. Offline

    mine-care

    Gamesareme can you please show the full code or at least where you call this? If you don't want the code public up, start a conversation with me, I'll do ma best
     
  3. Offline

    Gamesareme

    Any one?
     
  4. Offline

    Norbu10

    i think you need to check the Yaw or the Pitch (Sorry i last time i coded was 3 month ago)
     
Thread Status:
Not open for further replies.

Share This Page