pcursor() but for entities?

Discussion in 'CommandHelper' started by SoftMC, Dec 29, 2017.

  1. SoftMC

    SoftMC New Member

    Hello! So I'm trying to shoot a snowball from an armor stand with a different speed. In order to put in a different speed of shoot_projectile(), I need a target. I want that target to be where the armor stand is looking. Is there any way to?
  2. PseudoKnight

    PseudoKnight Well-Known Member Developer

    Usually the target is an entity, but you can use entity_line_of_sight() to get the blocks along their line of sight or use some math. You can even just change the velocity after you shoot the projectile.