Scripting a rail shooter aim system

Hey guys. I’ve been searching through google this forum for a while and i’m having a lot of trouble finding any information about this exact issue.

What i want to do is to set up a FPS rails shooter where the gun is fired and aimed by clicking/touching the screen. Like the same mechanics those horror arcade shooters had with the plastic guns shooting at the screen.

I’ve set up the rail and movement with matinee no problem, but i’m not sure which avenue to follow for the aiming. I can use the FPS one that’s already set up, but the camera moves with gun.

Does anyone have any tutorials I can use?

Use the get mouse location node, in combination with raycasting. Id give you more specifics on how to do it exactly but im currently trying to make something like what you need work in my own project

Im sure theres a simple solution right under my nose but im struggling to figure out how to cast a trace from the 2d cross hair into a 3d environment particularly in the case where there is an offset

Hey 6ixpool, thanks for the advice. Looking on the UE4 launchers learn section there’s a ‘shoutout’ game that looks like it uses the mechanics i want. I’ll give that a try and see how i go.

Read the documentation for the Shoutout example and it covers the networking but doesn’t have documentation for the gameplay yet. Sheet.