Hi guys,
I’m having a hell of a time attempting to create a new component from within another. I have a container data component that will hold a bunch of item data components. Both inherit from ActorComponent I can spawn the item component (Add ) and add it to the container’s array variable from the player’s pawn, but I’d like to move that logic into the container component since it should ideally be managing this stuff.
However, I don’t seem to have "Add " as an option from the component. I thought that perhaps I could do it if I made a reference to the Pawn “owner” class, but I don’t seem to be able to do it from there either.
Any ideas on what I’m doing wrong/better way to do this?