Issue in promoting a variable

Hi,

I am facing some issue in my project. Can someone please help me. I am taking a variable called “Target player”, from a blueprint and promoting it to new variable in my current blueprint. I put the screenshot below. In the blueprint, when I put the cursor next to the “Target player” from the “Enemy soldier” blueprint (marked as A in the below image), it shows the variable as “Player character”, so it works fine. But when I put the cursor on the promoted variable (marked as B in the below image, it shows “None”.

I don’t know why the variable is not transferring and how to resolve it. Can someone please enlighten me what could have gone wrong.

Thanks in advance.
Regards,

That looks ok. The promoted variable will say ‘none’, until you actually run the BP. Does it work?

  1. While running the BP, it is not working.

Ah…

It could still just be the debugger, it’s pretty unreliable on variable values. Much better is to print it, does that work?

OK. I will print it and check. Thanks.