I must be doing something wrong as for the life of me i cant get my controller blueprint to send a var (true or false) to my item blueprint using a blueprint interface.
watched so many vids over and over on blueprint comms but still cant get the hang of it lol.
I believe your problem is your calling it properly, but you haven’t setup receiving it right. When you right click to add it look under add event instead of call function.
In order to create a interface you have to create a new blueprint interface. then you must create some functions inside this blueprint interface. These functions do not contain code but your method names and properties. Then you need to use blueprint props/class settings to add the interface too the blueprint and then you have access to the interface and can communicate between blueprints… kinda like,
Blueprint interface - test function
MyCharacter blueprint - add test interface (this is the most important step, i had to double check where this was, in your blueprint, click class settings (Or blueprint props in older versions), and in the details pain near the bottom for interfaces add your custom interface.)
Now you have access to these interface functions inside your character class. This is where you drop the code.
From any other blueprint- get player pawn - access test function
This is the preferred way of blueprint communication. Now the other way is simply casting:
MyCharacter blueprint - create a test function (visible/public)
Any other blueprint - GetPawn -> Cast to MyCharacter blueprint -> test function (Notice how when we use interfaces we don’t have to cast to our sub class, we can just access the properties directly from our get player pawn function)
No worries, it took me a few days to grasp the concept myself.
If I am understanding correctly, everything up to here is correct. What you are doing here is simply calling the function again, not executing it once called.
Here is an example that I use. My function from my Interface is called DisableIsActive. Right click in a blank area and find your function as an event instead of dragging off the event tick and only getting a function call.
I hope I am understanding right and this helps you out.