How to set projectile direction?

Hello,

I want to make a projectile that is fired from a ship. This direction must depend on the rotation of the ship, because it must fly from the side of the ship, just like a pirateshipcannons. I created this blueprint of the projectile (called ‘Cannonball’).

The object is spawned by pressing ‘left mouse button’. The ‘Ship’ is ofcourse the ship and spawn location.This works, but the projectile doesn’t move.
Is the blueprint I made wrong or are the settings wrong?

I like to hear anything soon and I’m sorry if this is a stupid or frequently asked question.

I fixed it. For the ones, who have this problem too:
Create a component on the side of the ship.
Give the projectile the direction and location of it.

i know this is old but a screenshot would be sweet. I’m messing w/ projectiles and what not myself. :slight_smile:

Thanks for your answer but, how can I give the projectile the direction and location of it?

A suggestion would be to simply use a socket attached to the mesh in question, you can then retrieve the world transform of the socket and use that to spawn your projectile as one option.

ITS a component under the blueprints you made for the bulllet, “PROJECTILE MOVEMENT” …after you add that…
Under its options there is a VELOCITY… Starting/Max and lower down the list is the Direction… Generally choose X and add the similar velocity.

if you dont add velocity it will just spawn and stand still