How to set up firing a bullet in different directions?

Try the method from this post, it may help: