# True FPS Aiming System

**URL:** <https://forums.unrealengine.com/t/true-fps-aiming-system/371827>\
**Category:** Cinematics & Media\
**Tags:** aiming, unreal-engine, UE4, question, Blueprint\
**Created:** [September 28, 2016, 12:37am UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827 "2016-09-28T00:37:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![randao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randao](https://forums.unrealengine.com/u/randao)\
**Post date:** [September 28, 2016, 12:37am UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/1 "2016-09-28T00:37:33Z")

</div>

Hello guys, i’m currently working on an aiming system, but so far, i didn’t get what i wanted.

As you can see, the only thing that i am doing is switching between viewports, a camera in my weapon blueprint and a normal camera on my character.

![108715-screenshot_72.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/7/0c725347e94bb6db0d2b6ccc1e582dca31761918.png)

 ![108713-screenshot_68.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/8/bc8d622be8b5baabad06176b8e45b98641ab0bba.png)

But, doing that my weapon don’t shake when walking, because it’s attatched to the weapon, so all i can see it’s the camera following the weapon.

I don’t think that this is clear but, there is some way to attach a camera to a socket in the weapon mesh and only rotate it following the controller rotation? I mean, set the camera to a default position and only rotate it when aiming up/down? An example of that aiming system you can see in [Squad][3].

 ![108714-screenshot_71.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/d/aedb53726f2e6a4f61d0ff7946c24302bc963229.jpeg)

Thanks! Hope you guys can show me a way to do that.

---

<div class="post-metadata">

**Author:** ![Dallin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dallin](https://forums.unrealengine.com/u/Dallin)\
**Post date:** [September 28, 2016, 5:04pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/2 "2016-09-28T17:04:16Z")

</div>

not entirely sure what you are asking, and i couldn’t find a youtube example of this. but if it’s what I think you are asking, you can toggle under the camera deteals to enable disable use camera pitch and use camera yaw. you can hook this up to blueprints to trigger with an event

---

<div class="post-metadata">

**Author:** ![randao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randao](https://forums.unrealengine.com/u/randao)\
**Post date:** [September 28, 2016, 5:31pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/3 "2016-09-28T17:31:11Z")

</div>

Well, lets suppose that you have a FPS game. When you are walking, your weapon shoud follow the walking animation and you will have difficulty on aiming, alright? Since my weapon zoom camera it’s attatched on the weapon mesh, you can’t see that effect on it. The camera will follow the weapon, so you will not be affected on aiming when walking at all. If necessary, i can upload a video.

---

<div class="post-metadata">

**Author:** ![Dallin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dallin](https://forums.unrealengine.com/u/Dallin)\
**Post date:** [September 28, 2016, 6:02pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/4 "2016-09-28T18:02:22Z")

</div>

and your gun is parented to your skeletal mesh? Are you still using your camera boom?

---

<div class="post-metadata">

**Author:** ![randao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randao](https://forums.unrealengine.com/u/randao)\
**Post date:** [September 28, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/5 "2016-09-28T18:16:59Z")

</div>

Yes, the gun is parented to the sketal mesh. Ii’m not using camera boom.  
But there is the thing, the weapon is a separated actor and my zoom camera is parented to the weapon skeletal mesh, so i change the view target with blend between my character/weapon for the smooth transition, as you can see in the EnableADS event.

 ![108811-screenshot_80.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/c/abc79c4a7842e068ae610c81ddd48ac925894eea.png)

---

<div class="post-metadata">

**Author:** ![Dallin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dallin](https://forums.unrealengine.com/u/Dallin)\
**Post date:** [September 28, 2016, 6:24pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/6 "2016-09-28T18:24:11Z")

</div>

Yeah that looks like something that might work. have you tried just keeping 1 camera, and just setting the world transform to that of the gun (or a scene component parented to the gun) every tick?

---

<div class="post-metadata">

**Author:** ![randao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randao](https://forums.unrealengine.com/u/randao)\
**Post date:** [September 28, 2016, 7:02pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/7 "2016-09-28T19:02:20Z")

</div>

Dude, you rock! By doing that i’m not getting the socket rotation, only the transform, and that is exactly what I needed! Thank you, you helped me a lot!

---

<div class="post-metadata">

**Author:** ![randao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randao](https://forums.unrealengine.com/u/randao)\
**Post date:** [September 28, 2016, 7:02pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/8 "2016-09-28T19:02:52Z")

</div>

Solved! The answer is in the comments, i can’t mark as solved. Thank you Dalin.

---

<div class="post-metadata">

**Author:** ![Dallin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dallin](https://forums.unrealengine.com/u/Dallin)\
**Post date:** [September 28, 2016, 7:28pm UTC](https://forums.unrealengine.com/t/true-fps-aiming-system/371827/9 "2016-09-28T19:28:04Z")

</div>

glad I could help!
