Hi,
I was wondering if there is a way to get an object’s sub-type from the “Get Value as Object” Blackboard node? I am trying to do this to avoid using Casts, where possible.
I am trying to get a reference to an instance of my “Player Ship Pawn,” which is stored as a Blackboard Key Value when the AI Controller is initialized. In the details panel of my Blackboard, I have made sure to set the Base class of the Blackboard Key Object to “Player Ship Pawn.”
However, when I try to call any nodes that require a “Player Ship Pawn” as input, I cannot use the return value from the “Get Value as Object” node. Is there a way I can achieve this without performing a Cast?
Please see screenshots for reference.
Unable to get Player Ship Pawn out of return value of Get Value as Object:
Initialized within the AI Controller:
Blackboard Details: