# (VR) Toggle Pickup only if actor is a gun

**URL:** <https://forums.unrealengine.com/t/vr-toggle-pickup-only-if-actor-is-a-gun/478504>\
**Category:** XR Development\
**Tags:** toggle, Motion-Controller, vr-template, unreal-engine, question, Blueprint\
**Created:** [February 9, 2021, 10:47am UTC](https://forums.unrealengine.com/t/vr-toggle-pickup-only-if-actor-is-a-gun/478504 "2021-02-09T10:47:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBBran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBBran](https://forums.unrealengine.com/u/JBBran)\
**Post date:** [February 9, 2021, 10:47am UTC](https://forums.unrealengine.com/t/vr-toggle-pickup-only-if-actor-is-a-gun/478504/1 "2021-02-09T10:47:47Z")

</div>

I want to create a pickup system like Pavlov VR where picking up a gun is toggled using the grip button but picking up a grenade/mag/bullet is normal hold and release

IsGun is a function I created in my PickupActorInterface  
In my parent gun class IsGun is set to true

In my MotionControllerPawn

 ![329289-togglepickup.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/2/4e2b01b05a188ffbec79a61b3f2e99bfaba3f6d1.png)

In my PickupActorInterface

![329290-function.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/4/c14af91b99303bb7b3f3d14fb7ab2d0884ca729f.png)

Any help is appreciated!
