Trouble with Interfaces

Hi all -

Apologies, i’m new to UE - and i’m having trouble implementing an interface which i thought should work fine.

I have an inventory system where each slot is a button, when clicked i wish to have implement the function within that blueprint (for example if its a health potion in that slot, i want it to run the functions from the health potion blueprint)

In the inventory slot blueprint i have the following:

The print string is correctly referencing the class that’s in the slot

And in the health blueprint i have this:

but the print string isnt being called.

I’m assuming i’m missing something really obvious here apologies,

Can someone advise?

Thanks,

if you’re running the code on the health potion you need to put the interface on the health potion, you’re calling the player pawn, also make sure thats valid too

I worked out the issue - i was trying to call the interface on the health potion even though it had been removed from the game and was only valid as an icon in the inventory!

told you i was missing something obvious!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.