Get all actors of class/casting can only modify one array instance per cast? (lights and lightswitch)

JoshieZombie
Fri, 14 Aug 2015 13:42:01 +0000
Rendering

I’ve got a light switch set up in my project with two blueprints: Lights_BP, and LightSwitch_BP.
Upon overlap event I enable input. If I then hit E it will turn on my light. If I hit E again, my light will turn off. It works great with a single light, but I would like to be able to turn on and off an array of lights I place in my room.
I’ve included a screenshot of my lightswitch_BP and Lights_BP

I’d like to be able to >Get all actors of class>all instances>cast to lights_BP>Set Targets
If this is not a reasonable idea or way of going about such things advice is appreciated

lights in question:

7 posts - 1 participant