Problem to define a variable on actor after spawn

Hello,

I got some problem with my character blueprint. First I have a MoneyBag blueprint with an int variable which is exposed on spawn, editable and replicated.

When I spawn my MoneyBag blueprint inside my character blueprint I set his variable from an object variable of my character but the MoneyBag variable don’t get the value.

But the printed string and the spawn actor got 0.

Do you have any idea how to fix it?

Your print string is outputting 0 and it is supposed to be 5,000? Is there any other place that you are setting that variable? Try hard coding 5000 into the “spawn actor” node and see if the Money Bag BP will get the hard coded value.