Change Actor At Runtime
Posted: Sat Dec 04, 2021 8:03 am
Sorry if this has been answered already, but looking around the forums I didn't see what I was needing.
I am trying to instantiate a NPC object and within that object I have a Dialogue Actor component added. I want to change the Actor field within it based on another variable.
I am assuming I can use something at runtime to change the Actor based on my other variable
but I am not sure how to go about this. Any ideas?
I am trying to instantiate a NPC object and within that object I have a Dialogue Actor component added. I want to change the Actor field within it based on another variable.
I am assuming I can use something at runtime to change the Actor based on my other variable
Code: Select all
DialogueActor.Actor = "someone";