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

McPhearson
Tue, 10 Jan 2023 07:05:32 +0000
Blueprint

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.

2 posts - 1 participant