# Opinion on zooming in while aiming instead of looking down sights

**URL:** <https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [November 10, 2021, 3:32pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232 "2021-11-10T15:32:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f27400311](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f27400311](https://forums.unrealengine.com/u/anonymous_user_f27400311)\
**Post date:** [November 10, 2021, 3:32pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/1 "2021-11-10T15:32:35Z")

</div>

So I have had an issue detailed here:

> [@Moving camera just goes to my foot, no matter what values I put in](https://forums.unrealengine.com/t/moving-camera-just-goes-to-my-foot-no-matter-what-values-i-put-in/258598/17):
>
> Yes, I see what you mean. As mentioned, cameras are tricky - to expand, I don’t believe we can treat them like any other object with a transform because of it’s unique interaction with input and character. In any case, it’s still rather hard to determine the culprit from what you’ve shared, which is plenty, but of course testing things myself would obviously give me full control, this is time I don’t currently have to spend. Here are my guesses Main Camera Position: it looks like you are log…

I’ve spent around 25 hours (lowballing) trying to solve this issue but it doesn’t work no matter what. What I think i can do is something like what CSGO does, where when you aim (mostly) you don’t look down the sights, but your camera zooms in, It’s a Karlson style game I’m developing so it’d probably not be good, but I’d rather have it and have some aiming capabilities. What do you guys think? Do I put in and just fix it later on, or leave it if it’s not worth it? Or do I spend more time messing up my character code trying to fix this issue? I’ll take any opinions.

---

<div class="post-metadata">

**Author:** ![ConradG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ConradG](https://forums.unrealengine.com/u/ConradG)\
**Post date:** [November 10, 2021, 3:53pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/2 "2021-11-10T15:53:45Z")

</div>

You know, I think that’s insightful. If I can’t get a feature working as smoothly as I want (or at all) and it’s taking up too much time, I bench it or try an alternative or work on something else and come back to it later. I say to myself “perhaps I’ll see what’s wrong after it has left my attention.”

If this is the last feature, well, that’s a bummer, but I think alternate ideas can surprise. Go with a work around that’s close, work on other parts of your game. If you decide to come back to this, you may have picked up a thing or two.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 10, 2021, 4:09pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/3 "2021-11-10T16:09:44Z")

</div>

> [@anonymous\_user\_f27400311](#):
>
> when you aim (mostly) you don’t look down the sights, but your camera zooms in,

So… something like this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f27400311](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f27400311](https://forums.unrealengine.com/u/anonymous_user_f27400311)\
**Post date:** [November 10, 2021, 5:15pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/4 "2021-11-10T17:15:50Z")

</div>

Exactly like that, jsut less zooming.

I do have a question for you. Can you do it without the tick function? I already have a performance problem and if .2 FPS can be salvaged I would like to salvage it.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 10, 2021, 5:23pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/5 "2021-11-10T17:23:38Z")

</div>

You can’t measure performance of that script. I mean, you can but it’d be around .000000000001ms or thereabout 😉

If you do not want animation, make it instant - then it’s just an event. If you want an animation, you must update the result every frame… You can always disable Tick and enable it only for the zoom. Or use a Timeline.

---

<div class="post-metadata">

**Author:** ![Aoris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aoris/32/489656_2.png) [@Aoris](https://forums.unrealengine.com/u/Aoris)\
**Post date:** [November 10, 2021, 5:25pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/6 "2021-11-10T17:25:08Z")

</div>

You can use the timeline if you don’t want to use tick.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 10, 2021, 5:33pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/7 "2021-11-10T17:33:51Z")

</div>

> [@Everynone](#):
>
> Or use a Timeline.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/7/47b976b480d66bb128a9f2f9f71e45ee0ad71fba.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/c/0c90e1a126860626f162c644c847c700ce8152c3.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f27400311](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f27400311](https://forums.unrealengine.com/u/anonymous_user_f27400311)\
**Post date:** [November 10, 2021, 6:00pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/8 "2021-11-10T18:00:45Z")

</div>

Ah so it can work fine with a timeline. Thank you and everynone

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f27400311](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f27400311](https://forums.unrealengine.com/u/anonymous_user_f27400311)\
**Post date:** [November 10, 2021, 6:04pm UTC](https://forums.unrealengine.com/t/opinion-on-zooming-in-while-aiming-instead-of-looking-down-sights/260232/9 "2021-11-10T18:04:13Z")

</div>

And also I definitely want animation. That’s why I’ve gone through this whole ordeal. I had aiming functionality without animation, by just setting the location of the gun, but I wanted animation. Then it all fell apart.
