# help with enumerators and structures

**URL:** <https://forums.unrealengine.com/t/help-with-enumerators-and-structures/986624>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [April 15, 2023, 2:03am UTC](https://forums.unrealengine.com/t/help-with-enumerators-and-structures/986624 "2023-04-15T02:03:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pinteco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pinteco](https://forums.unrealengine.com/u/Pinteco)\
**Post date:** [April 15, 2023, 2:03am UTC](https://forums.unrealengine.com/t/help-with-enumerators-and-structures/986624/1 "2023-04-15T02:03:22Z")

</div>

I’m using ‘switch on’ for a enumerator. When the player clicks on ‘unlocks smg’ the weapon is spawned, and then I add ‘smg 1’ to the skill structure array. The structure has two variables, ‘skillEnum’ and ‘name’. I need to change this values after adding ‘smg 1’, but I don’t know how. The way that it is now, after the player clicks ‘smg 1’ nothing happens and there is no text associated with it.

 ![unreal print](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/7/b7721d498e4f515dd5cd2244f8e96fca5c4dbb59.png)

---

<div class="post-metadata">

**Author:** ![vespineauto007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vespineauto007](https://forums.unrealengine.com/u/vespineauto007)\
**Post date:** [April 15, 2023, 11:32am UTC](https://forums.unrealengine.com/t/help-with-enumerators-and-structures/986624/2 "2023-04-15T11:32:37Z")

</div>

I think you need to show what is before the switch.

I see where you add SMG1 to your array; however, what is causing the Event, or whatever, to re-run such that your switch can choose a different path?
