Multiple instances of the same blueprint, spawning objects

Hey everyone,

I am making a game with a building system in which the player can place certain types of blocks, made of blueprint actors. One of the placeable actors is a block that spawns objects when pressing spacebar.

When I place the same block multiple times in-game, only the latest block spawns an object when I press space.

This is the blueprint of the block that spawns the objects in-game:

Thanks in advance!

How would I go about making it so that every single instance of this block spawns the object when pressing space?

You need to get a reference to the block in order to make calls to it.

When you press shift who are you talking to? Thus the point of references.

I only realise now that I uploaded the wrong screenshot. This is the correct one:

By default, input is consumed and only 1 actor can process Space Bar at a time - the actor who gets to it first (there’s a chart for that). If they are equal in priority (they are here), it’s going to be the actor that was, indeed, spawned last.

In your very case, it seems you do not want this Space Bar event to consume input:

1 Like

Thank you so much! That fixed it!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.