# Get all players in certain area

**URL:** <https://forums.unrealengine.com/t/get-all-players-in-certain-area/1147530>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 28, 2023, 4:12pm UTC](https://forums.unrealengine.com/t/get-all-players-in-certain-area/1147530 "2023-04-28T16:12:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leev\_01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leev\_01](https://forums.unrealengine.com/u/leev_01)\
**Post date:** [April 28, 2023, 4:12pm UTC](https://forums.unrealengine.com/t/get-all-players-in-certain-area/1147530/1 "2023-04-28T16:12:30Z")

</div>

Is there a way to get all players in a certain area, and access these players in Verse? For example all players inside a barrier device?

---

<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 29, 2023, 5:37pm UTC](https://forums.unrealengine.com/t/get-all-players-in-certain-area/1147530/2 "2023-04-29T17:37:02Z")

</div>

You can use a mutator zone, size it to the area that you want then in Verse Subscribe to the OnPlayerEnteringZone and OnPlayerExitingZone to update an array of Player Agents in the area. Then when you want to effect all the players in the zone, iterate over the array of Player Agents.

---

<div class="post-metadata">

**Author:** ![EquinoxFNC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/equinoxfnc/32/686263_2.png) [@EquinoxFNC](https://forums.unrealengine.com/u/EquinoxFNC)\
**Post date:** [April 30, 2023, 1:42pm UTC](https://forums.unrealengine.com/t/get-all-players-in-certain-area/1147530/3 "2023-04-30T13:42:29Z")

</div>

Player Counter device, when player counted and removed.

---

<div class="post-metadata">

**Author:** ![Knight\_Breaker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/knight_breaker/32/1194711_2.png) [@Knight\_Breaker](https://forums.unrealengine.com/u/Knight_Breaker)\
**Post date:** [May 7, 2023, 3:13pm UTC](https://forums.unrealengine.com/t/get-all-players-in-certain-area/1147530/4 "2023-05-07T15:13:04Z")

</div>

Get the Playspace, fetch all players, get their transforms and compute the distance to your desired location. If it’s within a certain threshold then that player is within that location. This is a bit expensive if you do it too frequent, so you might use other techniques like already mentioned and use a mutator zone.
