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.
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