I have been watching videos, reading tutorials and old fashion trial and error for +3 hours now and still can’t seem to figure out what should be a relatively simple problem.
I have trouble figuring out how variable communication between blueprints work.
There doesn’t seem to be one best use of practice on how this works, and therefore it seems that all tutorials go about it in different ways.
The problem is more complex than below, but i have simplified it for the understanding.
I have two instances of a blueprint with a simple switch (SW 1 and 2)
I have two instances of a door blueprint (DR 1 and 2)
I have a variable designating the level of the key Var1
Var1 is also used for other things, so i want it to be easy accessed with as few steps as possible.
SW 1 opens DR 1 when Var1 > 1
SW 2 opens DR 2 when Var1 > 2
What is the best way to handle this variable (And variables in general)
Do i store them in the player BP, the level BP or do i create a new BP designated for all variables (Like a variable inventory bag)?
Can blueprints trade variable information directly, or do they have to come across the level BP?
I imagine the Var1 as an integer, and then having an array of booleans for each number of instanced doors. How do i make it so that DR 1 is relying on bool1, DR 2 on bool 2 and so on. (As in differentiating instances BP from one another)
I hope you can help, as this is a HUGE frustration, and with so much relying on variables it really hinders me a lot.
If it’s not asking to much, can you please also illustrate with a simple setup also, on exactly how you would approach this problem.
All help is greatly appreciated