# How to make a stuct that contains sound cues C++

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-stuct-that-contains-sound-cues-c/480400>\
**Category:** Audio\
**Tags:** Struct, footsteps, unreal-engine, FeatureRequest, CPP, question\
**Created:** [March 16, 2021, 5:10pm UTC](https://forums.unrealengine.com/t/how-to-make-a-stuct-that-contains-sound-cues-c/480400 "2021-03-16T17:10:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZackReganSounds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZackReganSounds](https://forums.unrealengine.com/u/ZackReganSounds)\
**Post date:** [March 16, 2021, 5:10pm UTC](https://forums.unrealengine.com/t/how-to-make-a-stuct-that-contains-sound-cues-c/480400/1 "2021-03-16T17:10:51Z")

</div>

I am trying to code the footstep audio system for my game and I am going to use a struct to contain the sound cues and particle effects for the feet. How exactly do I make a struct that contains sound cues?

---

<div class="post-metadata">

**Author:** ![Alekann01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alekann01](https://forums.unrealengine.com/u/Alekann01)\
**Post date:** [March 16, 2021, 7:44pm UTC](https://forums.unrealengine.com/t/how-to-make-a-stuct-that-contains-sound-cues-c/480400/2 "2021-03-16T19:44:25Z")

</div>

Hi ZackReganSounds

It is quite easy to produce this.

1. Add the include for the sound cue object to the header file: #include “Sound/SoundCue.h”

2. Create your struct above your class (or in a library)

3. Create a variable to store your struct within your class

4. You can now access this struct and the variable inside blueprints and C++

Hope this helps.

Alex
