I’m stuck creating a projectile. Currently I can make the projectile shoot at me, but only in one plane. The “barrel” is located much higher than my character and I want to have it shoot down at me.
Also, how can I make the projectile home onto me until it hits?
Currently my blueprint looks like this (also image showing my issue - the projectile is above and went past the pawn):
You could have it moving forward and turn towards the player with the look at rotation from the projectile to the player and Rinterp to that however fast you want it to turn.
Would it be possible to get a more indepth look at your explanation? Most of what I’ve learned thus far has been from tutorials. I’m not yet able to do simple stuff like this at a whim, sadly.
Each tick it turns the projectile towards the player at a rate specified by how strong the homing is. Since this is a LoL type statue the homing strength should be pretty high.
It then moves the projectile foward as many units as its speed is.
I put your blueprint into the projectile blueprint. While the turret blueprint says it’s firing, the game no longer spawns any projectiles meaning it’s not actually firing.
No clue if I should put it into my turret blueprint instead as I have no clue how to interpret your bp into my own.
EDIT: Lowered homing- and projectile speed and the scene outliner now correctly states that a projectile gets spawned. They are, however, invisible.
Try the Find Look at Rotation math function. It returns a rotator that you can poke into the rotation part of the transformation of your weapon/missile.
This should go into your projectile that’s fired BP, can you show me a pic of the component tab? I can fire mine from my character, albeit they just home back to me.
Tried that, but that’s not the issue. The BP you wrote seems to be working but the projectiles are seeminly invisible. They do get spawned as indicated by my scene outliner getting filled up (no destroy at the moment). They aren’t stuck colliding with the mesh either as they have collision set to none.
EDIT: Found them. They are shooting but appearing under the BSP. Not shooting from the socket. Hmm.
EDIT 2: Not appearing when playing. Only under simulation when it has no one to shoot at
I don’t know if this is useful, but on your fire part of the code, its set to spawn at a socket, but on your turret, its a component, why don’t you set the transform to the “bang” component transform?
The same thing happens. Gah. I guess this just isn’t happening.
EDIT: Saw your second edit. That’s not what I’m trying to do. I can make it fire just fine. If you look at the first post, I just need to make the projectile home in on my character. It finds my rotation but it doesn’t shoot downwards. It just shoots the projectile towards my location on the same plane.
EDIT2: Alright! I am the dumbest person alive on this earth. I seem to have not connected my clamp angle to my pitch… In any case, just homing left. :x