Solved Droping in eye-direction

Discussion in 'Rust Development' started by HOUGAN_Y, Jun 16, 2017.

  1. Hi. I write some plugin taht will drop ammos, now it is working, but i would like to my "world model" dropped in eye-direction.

    Code:
    ItemManager.CreateByItemID(atype, ammo).Drop(position + new Vector3(0, 0.5f, 0), Vector3.forward.normalized);
    (now it is always droping in one direction)
     
  2. Code:
    item.Drop(player.eyes.position, player.eyes.BodyForward()*2f);
     
  3. Ty, bro!