Spawn a blueprint which has a referenced one in it

Hello,
I’m working to system that consists of a checkpoint system, let’s call it BP1, this checkpoint system is used by another Blueprint, let’s call it BP2, to build a spline made of the location of those checkpoints plus the location of a vehicle and a mesh should follow this path. I referenced BP1 in BP2 and it just works, I can access the variables in BP1 from BP2.
Problems come when I try to spawn BP2 from my vehicle: when I do it through the Spawn Actor From Class node the editor gives me the following error: Accessed none ‘VariableName’ from node Construction Script in blueprint BP2. Honestly I can’t figure it out.
Could someone help me with this? Is it just impossible to do it or I am doing it wrong?
Many thanks.

Try spawning on BeginPlay event where everything should be initiated in object insted of construction script

Hi thanks for you reply and sorry for being a little late but I’ve been really busy.
I’m not using the construction script, all the logic is in the eventgraph.
BP2 logic is started by a Onbeginplay event.
BP2 is also spawned in the eventgraph of the vehicle by a key input.

Anyone can help me?

For everyone having a problem like this I suggest expose on spawn the variables that need to be passed to the BP to be spawned.
This way there’s no need to use blueprint referencing, just connect the variables to the pins of the spawn actor node.
Clearly you need to expose target variables in the BP that need to be spawn.