Please help with setting up a weapon system for my flyable pawn...

Hiya,

I’m having issues creating some weapons for my flyable pawn, currently it’s just a static mesh.
I am however trying to place a socket where I want the weapon to fire from but it either fires from the center of the ship or not at all.
This is a torpedo based weapon and need to make it limited on angle of attack but be able to home in on targets.
how do I figure this?
I have the projectile made, although there’s no coding for applying damage yet.
I’m just struggling to understand how to place the weapon and get it to fire from where I want it…
Eventually I wan to develop a button in the UI to control the firing mechanism as I want it to lock onto hostiles eventually.

Thanks.
Would I be better to use a skeletal mesh as my primary for the model over a static?

thanks a lot in advance.

Hey @Shadow1780!

So this means it’s just not getting the socket for use.

Show us where you’re at with the code! Also no need to switch to a Skeletal Mesh with this, you could do it with whatever you want- even no mesh at all. Also instead of a socket you can use a “Scene Node” component- invisible and easily placed, more or less just a transform location!

As for the rockets, on the projectile it does have a homing option in the projectile movement, the enemies just have to have a homing target component on them.

Get back to us soon!

Hiya, thanks for getting back to me. I figured it had something to do with child actors and somehow they work haha.

I do however have an issue with them, the logic i created use my ship as the primary target and they animate and point correctly.

but I have discovered an issue which i’m unsure how to correct..
The turrets on the ground seem fine, the ones on the ship although smaller aim at my ship as it’s target for now which is fine.

I’ve noticed once the ship has rotated a few times on the spot.. the barrel moves instead of staying central. this only seems to happen to the turrets fitted onto the ship…
Oh and I’m using unreal 4, as my system does no run 5 properly :(.

Sorry the pic aint the best..

Any ideas?

thanks in advance.