How are you setting the MyCharVar? If you are just making it the Blueprint of your playercharacter it is looking at a blueprint but not the one that’s working in the game.
if single player you can just use Get PlayerIndex 0 then from that use the GetActorLocation or plug that directly into the OtherActor on the GetDistanceTo.
For a networked game you will have to do a little more work to access a specific player.