How do I let enemies throw a rock at you in an arc

After doing the suggestprojectileVelocity, how do i update the projectile movement of the rock? i used set location but its not moving