The blueprint interface needs to know the target. What's the difference between a custom event that knows the target?

hi ( ̄︶ ̄):arrow_upper_right:

The blueprint interface needs to know the target. Is this any different than if I add a custom event to a known target blueprint and then reference the custom event in the target blueprint?

thanks
image
image

1 Like

A BPI takes an ACTOR as a parameter, the normal function call takes a known type as a parameter. That’s the critical difference.

Imagine if I want to interact with all objects in my game using types. I walk up to something, and I have to cast to every kind of thing I have in my game before I can call the interact function.

If I use an interface, I can always just call ‘interact’, and the object getting the call has to figure out what to do with it.

1 Like

I get it! Thank you very much! :grin:

1 Like

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