# How can I make it where only a specific player can access certain functions?

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-it-where-only-a-specific-player-can-access-certain-functions/2533623>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 30, 2025, 4:41am UTC](https://forums.unrealengine.com/t/how-can-i-make-it-where-only-a-specific-player-can-access-certain-functions/2533623 "2025-05-30T04:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Spycrap](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/a_spycrap/32/1140357_2.png) [@A\_Spycrap](https://forums.unrealengine.com/u/A_Spycrap)\
**Post date:** [May 30, 2025, 4:41am UTC](https://forums.unrealengine.com/t/how-can-i-make-it-where-only-a-specific-player-can-access-certain-functions/2533623/1 "2025-05-30T04:41:06Z")

</div>

Where a function only works if the specific player (Agent) activates it?

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [May 30, 2025, 4:46am UTC](https://forums.unrealengine.com/t/how-can-i-make-it-where-only-a-specific-player-can-access-certain-functions/2533623/2 "2025-05-30T04:46:10Z")

</div>

you would have to save the agent somehow let’s say this function is used to save the agent

```auto
var SavedAgent : ?agent = false
SaveAgent(Agent:agent):void=
   set SavedAgent = option{Agent}

```

And then on the main function you can compare against him

```auto
MainFunction(Agent:agent):void=
     if(Agent=SavedAgent?):
            StuffHere

```

---

<div class="post-metadata">

**Author:** ![A\_Spycrap](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/a_spycrap/32/1140357_2.png) [@A\_Spycrap](https://forums.unrealengine.com/u/A_Spycrap)\
**Post date:** [May 30, 2025, 5:20am UTC](https://forums.unrealengine.com/t/how-can-i-make-it-where-only-a-specific-player-can-access-certain-functions/2533623/3 "2025-05-30T05:20:32Z")

</div>

Thanks MineBlo

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [May 30, 2025, 6:02am UTC](https://forums.unrealengine.com/t/how-can-i-make-it-where-only-a-specific-player-can-access-certain-functions/2533623/4 "2025-05-30T06:02:32Z")

</div>

Happy to help \<3
