L178. Reticle won't change color and ammo count will not change

When I run the game, I get these log errors:

LogScript:Warning: Accessed None trying to read property BP Aiming Comp. Reference
PlayerUI_BP_C /Engine/Transient.UnrealEdEngine_0:GameInstance_1.PlayerUI_BP_C_1
Function /Game/UI/PlayerUI_BP.PlayerUI_BP_C:Get_Rounds_Left:001E

LogScript:Warning: Accessed None trying to read property BP Aiming Comp. Reference
PlayerUI_BP_C /Engine/Transient.UnrealEdEngine_0:GameInstance_1.PlayerUI_BP_C_1
Function /Game/UI/PlayerUI_BP.PlayerUI_BP_C:Get_AimPoint_ColorAndOpacity:00EE

And neither the reticle nor the ammo count meter change. Everything else works, though. I wonder what the problem is.

Basically you have the BP equivilant of a nullptr. It says it’s attempting to call GetRoundsLeft on a null reference. So that would leave me to believe you aren’t giving the UI the AimingComponent reference correctly.

I think you’re having the same problem that I had! Basically, you can’t have 2 BP Aiming Comp. References in 2 different places; in this case, one in the PlayerUI_BP and the other one in the Tank_BP. I can’t really explain what happens, but I found a solution:

In the TankPlayerController_BP, set the BP Aiming Comp. Reference before adding the Widget to the Viewport, and not after. Basically, something like this:

Good luck!

Privacy & Terms