How to send a variable to a base component from the owner actor at begin play?


The images will hopefully explain what I am trying to achieve, but to summarize also:

I have a BP_InteractableComponentBase, and would like to find out from it’s owner at runtime what type of EInteractableType it is. For the sake of testing, the Pawn_CoinPusher>EInteractableType has already been set to Interface-able. Can the component be interchangeable between any of my interactables and get the value of the Enum of Owner at runtime? From there I could go from the switch and cast to the parent class of the various interactable types (vehicle, interface-able, pickup).

Edit: Pawn_CoinPusher is a child of Pawn_Interfaceable, which has Enum InteractableType set to ‘instance editable’. I did not take a third picture showing that specifically.

I think I found a work around by getting a reference to the child component from the owning actor bp, and just set the enum off that. It seems to be working.

Edit: I have also since realized I was spelling possess wrong

1 Like