I am heaving a problem with how to make a int variable of one blueprint, ‘‘talk’’ to another.
This is the situation:
I have one blueprint that have 3 collision boxes. What i wanna to do is, when i click at the first one, it will read that variable int, that is connect to the function (On clicked), as 1.
Then this int variable would set a node (Switch int) in another blueprint as 1, and make that certain function ,who is connected to the number one pin, activated.
And so on for the other two buttons. Click on the second one, make int = 2 , then activate the (Switch int) on the other blueprint.
I’ve tried a lot of options, but i cannot put it the thinks together to make it work.
I really need some help, to understand all the concept.
Thank you very much.
After reading the description I believe what you need to do is expose the actors to each other so they can select the one they need to interact with, this is up to user preference how you wish to do this.
Then on the blueprints you can create a function that the other blueprints can call to change the int and activate your case.
This documentation has some examples of retrieving specific actors. https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/FindingActors/Blueprints/index.html#getspecificactors
This documentation that you send me, didn’t manage to help, unfortunately.
Is there another way that i can expose the actors?
I got accessed none, off a reference variable of the other blueprint.
I am kind of lost.
Could you show some screenshots of your Blueprints?
In the first blueprint where there is the (linguage type int), i want that the certain number that is being set ,depending on the box clicked, fulfill that int number on the (switch on int). That way depending of my choice it will lead to the specific number at the (switch on int), triggering different thinks depending on the number.
Once you get object refrence (for example overlapping events of those collision boxes for example), cast it to your class (since get node you gonna use will return in diffrent type), grab pin from it and drop it in empty space of blueprint, context menu will open and there should be “Varables” category, there should be Get and Set nodes of variables from that object.
I don’t know if i got the exactly idea, because i couldn’t manage to make it work.
Could you please send some pictures of how would be like?
I would appreciate a lot