TwinStick template - projectile question

(Wrong forum, someone please move to general discussion!)

Im working on my mazegame where I going to have destructable meshes. Therefore Im wondering how I can make the spaceship shoot a projectile and when it hits a mesh, it explode. I know how to make destructable meshes. Hope someone can help. I watched the FPS desctructable mesh projectile tutorial, but thats not what I want. Im using 4.0.7 preview 4.

I moved it to the blueprint section :wink:

Take a look at those tutorials:

  1. how to spawn a projectile: ?v=ojvuTz4KCfE
  2. explosive projectile: ?v=1aSdzw5zPtg
  3. destroy destructible mesh: https://answers.unrealengine/questions/51871/how-to-make-projectile-destroy-a-destructible-mesh.html

Thanks :slight_smile:

I followed the projectile tutorial, but when I compiled I get the “Error This blueprint (self) is not a Controller, therefore ’ Target ’ must have a connection.”

Heres my setup:

Use the control rotation with the reference to the pawn (atm you use the one from the controller) -> right click - type “get control rotation” into the search bar - choose the one under the pawn tab :slight_smile:

I figured out that it had a projectile when I used the arrowkeys on my keyboard :slight_smile: And When I added the setup in the Eventh-graph I didnt get the error.
But where do I connect the graph to use the mouse to fire instead?

You just have to connect it with a mouse event (like you have done it in the picture above) or do you probably mean that the projectiles should shoot into the direction of the mouse?

I want the projectile to fire in the direction the spaceship look :slight_smile:
Now I have it like this:

Where do I connect it to the rest of the graph?

I figured out that I wanted to have the projectile in the way it is in the template. But I got another idea, that I need to find a solution on:
fcf707d1f1bb1bb0254a507b95e5aba535d71cd9.jpeg

Another thing:
How can I make the ship start moving forward by itself, once I sart the game?

Just delete the move forward input axis and do this: