# UEFN - Could i have some help for a host value

**URL:** <https://forums.unrealengine.com/t/uefn-could-i-have-some-help-for-a-host-value/839447>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [April 2, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/uefn-could-i-have-some-help-for-a-host-value/839447 "2023-04-02T21:36:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nocktis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocktis](https://forums.unrealengine.com/u/Nocktis)\
**Post date:** [April 2, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/uefn-could-i-have-some-help-for-a-host-value/839447/1 "2023-04-02T21:36:04Z")

</div>

I would like to retrieve the value of the person who launches a custom map (the host).

I would like that when I start my game, only I can collect 3 weapons.

is it possible?

Thank you for your help.

```auto
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Fortnite.com/Teams }
using { /Fortnite.com/Game }
using { /Fortnite.com/Playspaces }
using { /Fortnite.com/Characters }
using { /UnrealEngine.com/Temporary/Diagnostics }

# A Verse-authored creative device that can be placed in a level
game_manager := class(creative_device):

    var PlayerMap : [player]int = map{}

    @editable
    var WeaponGranters : []item_granter_device = array{}

    @editable
    var Sentries : []sentry_device = array{}

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

    InitPlayers() : void=
        Playspace: fort_playspace = GetPlayspace()
        AllPlayers: []player = Playspace.GetPlayers()
        if (FirstPlayer : player = AllPlayers[0]):
            if (FortniteCharacter : fort_character = FirstPlayer.GetFortCharacter[]):
                Print("Grant Weapon to First Player")
                GrantWeapon(FirstPlayer, 0)
                GrantWeapon(FirstPlayer, 1)
                GrantWeapon(FirstPlayer, 2)

    GrantWeapon(Player : player, WeaponTier: int) : void=
        Print("to grant Weapon")
        if (ItemGranter := WeaponGranters[WeaponTier]):
            Print("granted")
            ItemGranter.GrantItem(Player)

```

---

<div class="post-metadata">

**Author:** ![Nocktis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocktis](https://forums.unrealengine.com/u/Nocktis)\
**Post date:** [April 3, 2023, 5:32pm UTC](https://forums.unrealengine.com/t/uefn-could-i-have-some-help-for-a-host-value/839447/2 "2023-04-03T17:32:36Z")

</div>

I still haven’t found an answer to my problem. 😭

🙏

---

<div class="post-metadata">

**Author:** ![Waurelius](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/waurelius/32/924263_2.png) [@Waurelius](https://forums.unrealengine.com/u/Waurelius)\
**Post date:** [April 3, 2023, 6:23pm UTC](https://forums.unrealengine.com/t/uefn-could-i-have-some-help-for-a-host-value/839447/3 "2023-04-03T18:23:10Z")

</div>

Hi Nocktis,

I don’t believe in Verse there’s a reliable way to do this unless there’s some existing Creative device with this functionality. That said, depending on what you’re trying to do you could have a button or something in the world that performed this function a limited number of times. Or you could do some kind of in-game team selection where the different teams get different sets of items via code.
