I have an interface called I_Pickup and I use it on items that I want to be able to pick up in my hands in my game.
To make things easier, I’ve given this interface two signatures, called “SetPhysicsState()” and “SetCollisionState()”. They both take a boolean as argument. Their function is just to set whether the blueprint simulate physics or not and whether the blueprint collides or not respectively.
But I can’t specify how the method should work when I open any of the blueprints that implements this interface:
For example if you look at this Soda Can I have it implements another interface called I_ItemInfo which tells a few things about that item that I can use and because those functions have outputs I got to actually define what they do in the blueprint that implements the interface:
What am I missing?
I want to make it so that the methods are called on the model on the blueprint so I won’t have to do any type of casting when I find the object through Line Traces.