Reading and processing integer value in one plan from another plan

Hello guys, I need your help on a very simple issue.
for example
We created an integer in a schema named ‘example 1’ and assigned an integer value to our integer, then we created another plan named example 2 that we want to access and read the integer value we created in example 1…
and here I got the integer (whatever we named it), then I made the variable promoto and chose the example 1 plan as reference. but in example 1 is integer = 1 even though I gave the integer the value 1 in example 2? when i check it is false. (with branch)
Example 1 Blueprint (It’s Name is BP W Host Game Widget) The variable Selected Map Id Status: is public and replication none


Example 2 Blueprint The Variable BP W Hosting Status is Public and Replication:none
2u
that’s result console say; not set 1

Message Logs;

When you say ‘schema’, I assume you mean blueprint?

You need direct blueprint communication

1 Like

At first I tried something similar to this, but example 2 can’t read the value from the blueprints in example 1.

What are the two blueprints?

example 1 blueprint is main menu widget
example 2 blueprint lobbycharacter

So, in one BP you can do a ‘get actor of class’ on the other BP and pick up the int that way.

If you don’t mind, can you make an example with a screenshot to make it simpler? I want to get the integer into my character blueprint from the main menu widget so I cant select bp_w_hostgame on get all actor of class

In the player

Or, if the player exists, you can do it the other way around and ‘send’ the int to the player.

GetActorOfClass( player ) → set ‘selected map id’

I cant select bp w host game widget from get actor of class for actor class it does not appear in the list

Have you compiled and saved it? ( BP_W_Hostgame )

This is probably academic anyway, because I think your project is multiplayer? And then everything is different anyway…

Yeah Of Course i will compile and saved

Ah, sorry, GetWidgetOfClass then…

Doesn’t worok still console says; variable not set 1 string message

Can you show the error?

still this way


error logs;

Do the widget and the character both exist at the time?

no widget at previous level (The widget is at the main menu level and the character is at the lobby level.)

Have you looked a lobby tutorials?

I solved it another way, I removed the map selection from the main menu and added it to the lobby and the players are shooting in the lobby and making the adjustments :slight_smile:

1 Like