# How to detect and get the player that enters in the Damage Volume Device through Verse?

**URL:** <https://forums.unrealengine.com/t/how-to-detect-and-get-the-player-that-enters-in-the-damage-volume-device-through-verse/839238>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 2, 2023, 7:09pm UTC](https://forums.unrealengine.com/t/how-to-detect-and-get-the-player-that-enters-in-the-damage-volume-device-through-verse/839238 "2023-04-02T19:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minatore](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/minatore/32/642918_2.png) [@minatore](https://forums.unrealengine.com/u/minatore)\
**Post date:** [April 2, 2023, 7:09pm UTC](https://forums.unrealengine.com/t/how-to-detect-and-get-the-player-that-enters-in-the-damage-volume-device-through-verse/839238/1 "2023-04-02T19:09:26Z")

</div>

Hello guys…  
I want to show a widget blueprint to whatever player enters a Damage Volume Device. I noticed that there’s a function called “AgentEntersEvent” but i don’t know how to use it. How can I detect and get the player that enters and exits the Damage Volume Device so that I can show them the Widget?

I’ve tried everything.

---

<div class="post-metadata">

**Author:** ![Nman\_Pkr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nman_pkr/32/1194697_2.png) [@Nman\_Pkr](https://forums.unrealengine.com/u/Nman_Pkr)\
**Post date:** [April 3, 2023, 3:47am UTC](https://forums.unrealengine.com/t/how-to-detect-and-get-the-player-that-enters-in-the-damage-volume-device-through-verse/839238/2 "2023-04-03T03:47:36Z")

</div>

You need to subscribe the event to a function. You can do this by targeting the damage volume either individually or via an array or even Verse\_Tags. There is a tags example  
in the UEFN Documentation you could use for that. Here is some example Verse code on how you could accomplish this using the individual damage volume setting option.

```auto
 #Allows setting 1 damage volume from the details pane
 #You could make this an array like this: 
 #SpecialDamageVolumesArray : []damage_volume_device := array{}
 #Then loop through each:

for(DamageVolume : SpecialDamageVolumesArray):
    DamageVolume.Subscribe(DamageVolumeEvent)

 #Another solution would be to use Tags and find each device with the Verse_Tag and loop through those

 @editable
    SpecialDamageVolume : damage_volume_device = damage_volume_device{}

    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
	#Your Code

    SpecialDamageVolume.AgentEntersEvent.Subscribe(DamageVolumeEvent)

    DamageVolumeEvent(InPlayer:agent) : void = 
	#Your Code

```
