Variables communicated between blueprints and/or construction scripts return as their default value

I am experiencing this in multiple projects, both between construction script/event graph and between blueprints using blueprints interfaces. Below are screen shots of it happening whilst using Digital Tutors project files. There are 15 blue pickup actors in the level, but it returns as 0

Construction Script set up to count pickup actors

Event Graph set up to print the number of blue pickup actors

Result of printed

Hello,

This could be an order of operations issue. The MyGame construction script is most likely being executed before the pickups are being created. In order to test this, try taking the logic that you have in the construction script and moving it to the Event Graph under Event Begin Play instead. This should allow you to get the correct number of pickups that you have in your level.

Let me know if that helps.

Have a great day

I’ve just tried this and it does indeed work! And I have just got variables to communicate between my other blueprints too!

It’s typical, I’ve being trying to crack this for 3 days, and as soon as I commit to posting for help… I figure it out!

Thank you for you’re help with the construction script element. I much appreciate it =)