GetPawn in this part for me return null

I already reparent Tank_BP and TankController_BP but there is no Pawn. I already tested in 4.11, 4.12 and 4.13.

My code is in https://github.com/ricardodiasc/BattleTank.git

Thanks in advance.

Ricardo Dias

if (Tank) and if (TempPawn) should be if (!Tank) and if (!TempPawn), respectively. The if code should run if we don’t have a pawn, not if we have one.

Thanks for the fast reply. Only in my head i thought the logic was reverted :smiley:

Privacy & Terms