Object reference from actor to character blueprint

I cant seem to figure out how to get a object reference from the Power cell actor blueprint to my first person character blueprint. alt text

There are multiple ways to get the object reference, depending on how your scenario the best option might differ.

Since you have a panel where you check if your character is close you could turn things around and put all your logic in there.

An example: in the OnComponentBeginOverlap event of the trigger in the PowerCellPanel , you can check if the other actor is of the YourCharacter class, then get the boolean you have for the powercell and feed that to the PowerCellCallEvent you created.

Depending whether or not you have a power cell you can implement different logic there.

I should of specified, I know how to get a overlap event like that to work, I’m using it right now for testing purposes. My issues is i want it to be a Press F key event as shown in the picture. I cant use the Press F key event in my Power cell Panel BP i can only use it in the character BP so i’m trying to figure out how to get a reference of my power cell panel BP to use in my Character BP.

so i’m trying to figure out how to get a reference of my power cell panel BP to use in my Character BP

If you want a reference you can make a variable in your Character BP, and when you character overlaps with a PowerCellPanel you set it, and unset it when you end overlap.

I not sure that’s what I’m looking for and if it is I don’t understand I guess. I just posted 2 more pictures of exactly what I want which is In the char BP press f key fires off a function in my PowerCellPanel BP to Toggle Visibility. My one and only problem is target self in my Char BP is not self, it needs to be referencing my PowerCellPanel but i cant seem to figure out how to get it to do that.

I not sure that’s what I’m looking for and if it is I don’t understand I guess.

Basically, what you want to do is:
Whenever you are within range of a power cell panel, and you have a powercell, if you hit a certain key (F in this case), something happens. (Toggle Power Cell Event in this case).

To make it work with what you have now you should add a variable of type PowerCellPanel to your character. And set it using the method I showed above. Then you can hook it up to your TogglePowerCellEvent function.

Personally I wouldn’t work this way, but work with an interaction system.
This video shows a nice example on how you could implement that:

Okay i did get it working, its set up so if i wanted to add more interactable things i can do so easily. Thanks for being patient with me and showing me how to do it this way.