ink: getting actor object
Posted: Tue May 19, 2020 11:37 am
Hi Tony:
I'm trying to get an actor object in behavior designer that is passed as a variable from dialogue system. If I use the "Get Dialogue System as String" task , it would seem logical to me that I could get a variable from the Dialogue System that has the current Actor object (or that I could use to find the object) as specified with the #Actor tag in the ink file. So, in the example from around the world in 80 days, I might want to access the player avatar in the Unity world and change facial expressions. Or switch between actors in Unity world as the dialogue changes. I see how the actor has been specified in Dialogue System and appears in the dialogue shown in the game window - and so intelligently changes as the actor changes in the ink script (very nice). Now, if I could figure out how to get a pointer to the different actor objects in Unity as their dialogue changes in ink, I would be able to move forward. Thanks in advance for your advice on how to do this.
John
I'm trying to get an actor object in behavior designer that is passed as a variable from dialogue system. If I use the "Get Dialogue System as String" task , it would seem logical to me that I could get a variable from the Dialogue System that has the current Actor object (or that I could use to find the object) as specified with the #Actor tag in the ink file. So, in the example from around the world in 80 days, I might want to access the player avatar in the Unity world and change facial expressions. Or switch between actors in Unity world as the dialogue changes. I see how the actor has been specified in Dialogue System and appears in the dialogue shown in the game window - and so intelligently changes as the actor changes in the ink script (very nice). Now, if I could figure out how to get a pointer to the different actor objects in Unity as their dialogue changes in ink, I would be able to move forward. Thanks in advance for your advice on how to do this.
John