# How do I detect the nearest player to a person who activates a remote?

**URL:** <https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 10, 2024, 6:50am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645 "2024-01-10T06:50:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catthatrat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Catthatrat](https://forums.unrealengine.com/u/Catthatrat)\
**Post date:** [January 10, 2024, 6:50am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645/1 "2024-01-10T06:50:59Z")

</div>

I want to give a jumpscare to the nearest player of a player who activates a remote.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [January 11, 2024, 2:46am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645/2 "2024-01-11T02:46:54Z")

</div>

you could do a sphereoverlap to get all actors in range and then loop over them with a distance check to see who is closest

---

<div class="post-metadata">

**Author:** ![Catthatrat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Catthatrat](https://forums.unrealengine.com/u/Catthatrat)\
**Post date:** [January 11, 2024, 3:08am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645/3 "2024-01-11T03:08:22Z")

</div>

Does that exist in verse for uefn?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [January 11, 2024, 3:12am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645/4 "2024-01-11T03:12:18Z")

</div>

oh sorry didnt notice its UEFN, i havent used that but surely the basic functions exist?

---

<div class="post-metadata">

**Author:** ![Catthatrat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Catthatrat](https://forums.unrealengine.com/u/Catthatrat)\
**Post date:** [January 11, 2024, 3:15am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645/5 "2024-01-11T03:15:26Z")

</div>

You’re good. I checked the documentation and I’m pretty sure it doesn’t exist
