Blueprint communication problems between spawned pawn and level blueprint

Dear UE4 Answerhub,

I’m having problems with blueprint communication and wondered if the community could help me or point me in the right direction?

In my project I have a custom pawn, which has a variable called LHV (Boolean). I can set the value of LHV during run time fine. LHV sets if the pawn should use the left or right hand of the pawn. With branches inside which takes this Boolean to switch between certain parts of code etc. Now this all works, I have for a test hooked up 0 and 9 to switch LHV to true or false and in run time its fine.

However I have a simple menu level in which levels are numbered and the level blueprint has keyboard numbers hooked up to load the appropriate level.

These levels are currently right hand versions of maps, however I have created left hand versions of the maps. What I hope to do is take the value of LHV in the pawn blueprint and use that in an if statement to load the correct map. E.g press 1 if LHV from pawn is true load left and version of map.

I have read the documentation about blueprint communication but I’m having problems trying to get the value of LHV in the menu level blueprint. I’ve tried interfaces, but reading the documentation interfaces cannot be accessed by a level blueprint. Also for my version of UE4 (4.7.0) adding interfaces in blueprints causes my editor to crash. I’ve even tried doing via the gamemode blueprint with no luck. When I hover my cursor over the variable get for the pawn when trying to get the value of LHV in the menu blueprint all I get is “Current value = None”. Which says to me that communication to the pawn blueprint is not correct, maybe being the pawn is only being created once spawned. When I set LHV using 0 or 9 and press a level number the branch condition is always false, the default value for LHV. I’m guessing that going via the level blueprint is the wrong way. I have tried setting LHV in the menu level blueprint and accessing it via the pawn blueprint but no luck.

It seems to me a very simply thing to do yet UE4 is making it hard to understand. Even more from a programming background in which declaring variables is straightforward. I’m hoping that this gets better as I spend longer using UE4! Does anyone have any tips on how to proceed?

Many thanks,

Peter