# "verse data definitions at this scope must be initialized with a value"

**URL:** <https://forums.unrealengine.com/t/verse-data-definitions-at-this-scope-must-be-initialized-with-a-value/1764148>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 20, 2024, 11:07pm UTC](https://forums.unrealengine.com/t/verse-data-definitions-at-this-scope-must-be-initialized-with-a-value/1764148 "2024-03-20T23:07:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karamboot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Karamboot](https://forums.unrealengine.com/u/Karamboot)\
**Post date:** [March 20, 2024, 11:07pm UTC](https://forums.unrealengine.com/t/verse-data-definitions-at-this-scope-must-be-initialized-with-a-value/1764148/1 "2024-03-20T23:07:25Z")

</div>

Hey there, I am new to Verse and I don’t understand what I have to do in order for my functions to be called. The “(Agent:agent)” is underlined and it says that “verse data definitions at this scope must be initialized with a value” and I don’t know how to solve this problem.  
Help would be very much appreciated!

 ![Screenshot (84)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/a/5fa0506cd8e5c08493a4409d54fab7463544fd85.png)

---

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [March 21, 2024, 2:37am UTC](https://forums.unrealengine.com/t/verse-data-definitions-at-this-scope-must-be-initialized-with-a-value/1764148/2 "2024-03-21T02:37:12Z")

</div>

It doesn’t look like you have an Agent/Player reference inside the scope of your IF/ELSE expressions. The ChooseLoadout4(Agent:agent) needs a reference of Agent or Player and can’t find one. You need the whole:  
Player: GetPlayspace().GetPlayers() expression inside the IF scope, then put the Player reference into ChooseLoadout( ). Either a player or agent reference should work, but it doesn’t look like it sees one.

---

<div class="post-metadata">

**Author:** ![Karamboot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Karamboot](https://forums.unrealengine.com/u/Karamboot)\
**Post date:** [March 21, 2024, 11:31am UTC](https://forums.unrealengine.com/t/verse-data-definitions-at-this-scope-must-be-initialized-with-a-value/1764148/3 "2024-03-21T11:31:42Z")

</div>

I did as you told me and it works now! Thank you very much 🙂 \<3

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 20, 2024, 11:32am UTC](https://forums.unrealengine.com/t/verse-data-definitions-at-this-scope-must-be-initialized-with-a-value/1764148/4 "2024-04-20T11:32:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
