# How do I activate all attached objects?

**URL:** <https://forums.unrealengine.com/t/how-do-i-activate-all-attached-objects/328608>\
**Category:** Audio\
**Tags:** activate, unreal-engine, loop, objects, Blueprint, question\
**Created:** [August 13, 2015, 11:07pm UTC](https://forums.unrealengine.com/t/how-do-i-activate-all-attached-objects/328608 "2015-08-13T23:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon236](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brandon236](https://forums.unrealengine.com/u/Brandon236)\
**Post date:** [August 13, 2015, 11:07pm UTC](https://forums.unrealengine.com/t/how-do-i-activate-all-attached-objects/328608/1 "2015-08-13T23:07:25Z")

</div>

I currently have 45 attached objects and each object has a different blueprint but they all have the same custom event and the same variable name. So is it possible to have a blueprint go through each attached object and activate the same custom event because I don’t want to create 45 variables with each one pointing to the same custom event.

Update: So I have a variable which is pointing to the object that the other 45 objects are attached to. I just need an alternative to making 45 variables and calling the same event.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [August 14, 2015, 9:23am UTC](https://forums.unrealengine.com/t/how-do-i-activate-all-attached-objects/328608/2 "2015-08-14T09:23:54Z")

</div>

Hi!

Create an array of **Actor Class**. Add to this array all your blueprint objects. And with **ForEachLoop** nodes, set a new data to needed variables or generate events.

 ![54130-array01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/4/fc4c22498040cf6e452b0d20cba61796d6473905.jpeg)

---

<div class="post-metadata">

**Author:** ![CelestialPanda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CelestialPanda](https://forums.unrealengine.com/u/CelestialPanda)\
**Post date:** [August 14, 2015, 10:08am UTC](https://forums.unrealengine.com/t/how-do-i-activate-all-attached-objects/328608/3 "2015-08-14T10:08:41Z")

</div>

If you’re using a Custom Event and don’t want to do a generic function like “Scale Actor”, each different blueprint you want to call the Custom Event of you will need to make “Inherit Interface”. Make that interface have a function, then implement that function in every blueprint.

At that point you can “Get all Actors that Inherit Interface” and call the function.
