I have two actor components that I am attaching to NPCs - one generates a random name and creates a data table row for the speaker name, and the other takes the randomly generated name and uses it to assign dialogue options and speaker attributes to the NPC.
The problem, however, is that I’m having trouble with casting the name generator to the get speaker attributes function. I don’t have an object to use as a wildcard(?)
When I try to get the data table row created by the namegen actor component, I am not able to provide an actor reference because I don’t want this affecting a single NPC but every NPC I apply the actor components to.
I have tried creating a public reference to the namegen component but the list for the reference is always empty and i can’t select the namegen, so I always get an accessed none error on runtime.
Here is my setup - casting error and all.
At the most basic level, I am having problems referencing the struct variable from another blueprint.
Any help would be greatly appreciated. It’s probably an easy fix, but as a UE novice I’ve been struggling with this for hours.