Creating new actors from arrays

Hey everyone,

Not really sure how to word this, so let me explain what I’m wanting and you can tell me if I’m crazy or if there’s a way to do this in Unreal.

I’m building an adventure game. Within it, I have the concept of rooms, which are basically the scenes you would normally find. A room consists of:

  • Room Actor (Stores all the data)
  • One or more Triggers to switch to that room
  • One or more Cameras for that room
  • Various other elements that aren’t critical to the question

Right now I’m doing this with separate blueprints, so I have a room BP I drag in, and then I have a trigger BP and a Camera BP. I drag all these in, then I setup references to them within arrays on the BP_Room.

What I was wondering: Is there a way I could select a Room BP, and either increase say the Trigger array by 1, or have an editor scripted button to click that would automatically create a trigger along with setting up the connections? This is purely for a workflow improvement and would then hopefully be applied to the same thing with cameras as well as anything else I would need for that room.

Hi Tribalbob,

I think I get what you’re after, I do something similar here:

I also added a system to pass in row/column etc data which would be similar to your indexes: