# First Person ADS (aim down sights) with weapons that have scopes while also using weapons without scopes

**URL:** <https://forums.unrealengine.com/t/first-person-ads-aim-down-sights-with-weapons-that-have-scopes-while-also-using-weapons-without-scopes/1794677>\
**Category:** Verse\
**Tags:** unreal-engine, unreal-editor-for-fortnite, editor\
**Created:** [April 8, 2024, 10:07pm UTC](https://forums.unrealengine.com/t/first-person-ads-aim-down-sights-with-weapons-that-have-scopes-while-also-using-weapons-without-scopes/1794677 "2024-04-08T22:07:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOSPELOF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GOSPELOF](https://forums.unrealengine.com/u/GOSPELOF)\
**Post date:** [April 8, 2024, 10:07pm UTC](https://forums.unrealengine.com/t/first-person-ads-aim-down-sights-with-weapons-that-have-scopes-while-also-using-weapons-without-scopes/1794677/1 "2024-04-08T22:07:42Z")

</div>

this code here will allow you to use weapons in first person that have scopes and weapons that don’t have scopes. you will simply connect everything like so

```
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

test_device_five := class(creative_device):

    @editable
    InputTrigger:input_trigger_device = input_trigger_device{}

    @editable
    ScopedWeapons:[]conditional_button_device = array{}

    @editable
    AddOrbitCam:trigger_device = trigger_device{}

    @editable
    RemoveOrbitCam:trigger_device = trigger_device{}

    OnBegin<override>()<suspends>:void=
        Setup()

    Setup():void=
        spawn{AwaitInput()}

    AwaitInput()<suspends>:void=
        loop:
            PressedAgent := InputTrigger.PressedEvent.Await()
            for (ScopedWeapon : ScopedWeapons):
                if (ScopedWeapon.IsHoldingItem[PressedAgent]):
                    RemoveOrbitCam.Trigger(PressedAgent)
                    spawn{AwaitRelease(PressedAgent)}

    AwaitRelease(PressedAgent:agent)<suspends>:void=
        loop:
            ReleasedAgent := InputTrigger.ReleasedEvent.Await()
            if (PressedAgent = ReleasedAgent):
                RemoveOrbitCam.Trigger(ReleasedAgent(0))

```

 ![Screenshot 2024-04-07 073819](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/3/1b3009a6162ed0aa62b7149e1bb312448078cb9f.jpeg)  
 ![Screenshot 2024-04-07 073734](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/a/2eac762e34aa90db9ab70348949e14aa35da12ac.png)  
 ![Screenshot 2024-04-07 073855](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/d/aad108df66d704d84c78e445760b4f3930fc6273.png)  
 ![Screenshot 2024-04-07 073847](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/6/816ecd7840a92dbf89e15475620c2b79053dacde.png)
