# Store location, orientation, type etc. of all actors in an array?

**URL:** <https://forums.unrealengine.com/t/store-location-orientation-type-etc-of-all-actors-in-an-array/311655>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 19, 2015, 4:06am UTC](https://forums.unrealengine.com/t/store-location-orientation-type-etc-of-all-actors-in-an-array/311655 "2015-03-19T04:06:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnetbrain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Magnetbrain](https://forums.unrealengine.com/u/Magnetbrain)\
**Post date:** [March 19, 2015, 4:06am UTC](https://forums.unrealengine.com/t/store-location-orientation-type-etc-of-all-actors-in-an-array/311655/1 "2015-03-19T04:06:49Z")

</div>

Hello,

For the game I’m designing, I’m implementing a “level editor” - the simplest way I can think of doing this, is by letting the user place different actors (for walls, floors etc) in a template, and then saving all the details for each actor into an array for storage. How do I go about saving all this data into an array? Bonus points if you can tell me how to load all the actors in said array into a level 🙂

---

<div class="post-metadata">

**Author:** ![DasMatze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DasMatze](https://forums.unrealengine.com/u/DasMatze)\
**Post date:** [March 19, 2015, 3:52pm UTC](https://forums.unrealengine.com/t/store-location-orientation-type-etc-of-all-actors-in-an-array/311655/2 "2015-03-19T15:52:54Z")

</div>

You need to use custom structures (New \> Blueprints \> Custom User Structure). You can have multiple variables, even arrays in them.

To load them in a level, use a “For Each Loop” with the custom structure array followed by “Spawn Actor by Class” (or what it is called) using transformation variables stored in the custom structure.
