How to use this in an Actor component BP

So I have an actor in the scene that calls all other actors that implement the ‘gravity interface’ BP interface.
the actors with that bp interface (a soup can in this case) will then switch their own gravity off like this;

This works fine but instead of making a blueprint for all the other actors I want to convert this into an actor component so that I can drop it onto every actor that needs to turn off gravity.
I can’t seem to get this working though.
I’ve made an actor component and dropped it on an actor in the scene but the event is not being called in there.

Tutorials haven’t gotten me any further. does anyone know how to do this? any help would be very much appreciated.

I would just use a main parent (child of StaticMeshActor) to handle that, so SoupCan and any other object with similar function would inherit from that main BP. Am I missing something?

I’m not sure what you mean , sorry i’m a bit new at this.
This is my scene right now

Im trying to do the same thing this guy is doing here [link text][2]

some of the objects in the room need more functionality then others so I thought this would be a good approach.

How are you calling the function?

gravity_switch

I know what you named the function. Where exactly are you making the call? I think you might be calling the interface function on the actor BP not the actor component BP, and the actor doesn’t have the gravity interface.

Oh I see , I think you’re right.
this is how its set up in the coffee_cup_bp:

I don’t believe GetAllActorsWithInterface will check for Components implementing interfaces, only the actual actors. One solution is this: https://answers.unrealengine.com/questions/209730/475-interface-events-not-firing-in-blueprint-scrip.html.

I don’t know if Components are helping you, but I don’t use them much.