# PUBG style aiming click and hold RMB

**URL:** <https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828>\
**Category:** Blueprint\
**Tags:** aiming, aim, unreal-engine, UE4, question, Blueprint\
**Created:** [February 9, 2018, 4:56am UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828 "2018-02-09T04:56:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghostnova91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ghostnova91](https://forums.unrealengine.com/u/ghostnova91)\
**Post date:** [February 9, 2018, 4:56am UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/1 "2018-02-09T04:56:05Z")

</div>

How would I go about a system like in PUBG where holding the aim button does TPS aiming but clicking it toggles ADS?

It’s easy enough to do one or the other but how about both?

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [February 9, 2018, 9:48am UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/2 "2018-02-09T09:48:12Z")

</div>

I’ve not played PUBG so I don’t know exactly how it feels but this logic should be a good starting point for you. The delays will likely need tweaking to get the feeling right.

Hope this helps!

> **[PUBG Style ADS logic posted by jkelly206 | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/2i_izlw9/)**
>
> Uploaded for AnswerHub question.
> 
>   
> "ADS On?" Variable is set by the Enter/Exit ADS functions.

---

<div class="post-metadata">

**Author:** ![ghostnova91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ghostnova91](https://forums.unrealengine.com/u/ghostnova91)\
**Post date:** [February 9, 2018, 11:01pm UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/3 "2018-02-09T23:01:59Z")

</div>

This is exactly what I need!

The only issue I’m having is when I attach my TPS aiming logic to the “held” portion, holding down to aim goes to toggled aim for a split second. Any ideas on how to change this?

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [February 10, 2018, 12:39pm UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/4 "2018-02-10T12:39:26Z")

</div>

Hmm I wasn’t getting that issue. Could you upload the blueprint and I can have a look at it?

---

<div class="post-metadata">

**Author:** ![ghostnova91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ghostnova91](https://forums.unrealengine.com/u/ghostnova91)\
**Post date:** [February 10, 2018, 5:38pm UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/5 "2018-02-10T17:38:04Z")

</div>

[](https://dl.dropboxusercontent.com/s/7xnulm4t3p30a1z/Capture.PNG?dl=0)

Perhaps I have the TPS aim in the wrong location?

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [February 10, 2018, 6:34pm UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/6 "2018-02-10T18:34:17Z")

</div>

Yeah you shouldn’t need to put anything after the “Toggled” Boolean. I don’t fully understand your system as you have more functions than I expected.

Try changing where the TPSAim is in the graph and see if that helps. Also, for sharing blueprints, I recommend you use [https://blueprintue.com](https://blueprintue.com) instead of sharing screenshots. All you have to do is select all your nodes, Ctrl+C then Ctrl+V in the dialogue box on the website!

---

<div class="post-metadata">

**Author:** ![ghostnova91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ghostnova91](https://forums.unrealengine.com/u/ghostnova91)\
**Post date:** [February 10, 2018, 11:59pm UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/7 "2018-02-10T23:59:13Z")

</div>

OK I figured out the ADS part is what I had to move. I was doing different functions for the ADS aiming and the TPS aiming.

Thanks a lot for the help with this and showing me [https://blueprintue.com](https://blueprintue.com) as well that’s going to be very helpful for me in the future.

Here’s the finished product:

> **[ADS and TPS aiming posted by Enraged | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/brhfpae1/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [February 12, 2018, 9:04am UTC](https://forums.unrealengine.com/t/pubg-style-aiming-click-and-hold-rmb/416828/8 "2018-02-12T09:04:06Z")

</div>

Glad I could help 🙂
