Force a projectile on event?

Discussion in 'Plugin Development' started by TomShar, Nov 11, 2012.

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

    TomShar

    I am calling a method form a PlayerInteractEvent which I want to make a snowball be thrown from the player as is they just right clicked one.

    how could I accomplish this?

    anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  2. Offline

    andf54

    projectile = shootLocation.getWorld().spawn(shootLocation, AnyProjectile.class);
    projectile.setVelocity(directionVector.multiply(speed));

    And why did you bumb your topic after 1h? Be patient.
     
Thread Status:
Not open for further replies.

Share This Page