Page 1 of 1

Does DialogueActor look for the character gameOjbect only for children?

Posted: Mon Nov 16, 2020 7:32 pm
by fkkcloud
Hello,

Does DialogueActor look for the character gameObject only for children?

if I have Dialogue Actor like below in the gameObject hierarchy- would it find the gameObject/Animator that is "within" the Dialogue Actor?
12312142.png
12312142.png (84.63 KiB) Viewed 288 times

Re: Does DialogueActor look for the character gameOjbect only for children?

Posted: Mon Nov 16, 2020 7:45 pm
by Tony Li
Hi,

If you mean the Animator***() sequencer commands such as AnimatorPlay() and AnimatorBool(), then yes, it will search the Dialogue Actor's children for an Animator if it doesn't find an Animator on the Dialogue Actor GameObject.

Re: Does DialogueActor look for the character gameOjbect only for children?

Posted: Mon Nov 16, 2020 7:51 pm
by fkkcloud
What about "speaker" "conversant" or passing its Transform via actor name/variable in the DIalogue System node?

Which one gets priority?
If I have DialogueActor like the image and have ProximityTrigger in the Animator Node within the DialogueActor (its children)?

e.g. in Sequencer

Code: Select all

CustomSequenceFunction(CharacterName);
or

Code: Select all

CustomSequenceFunction(speaker);
or

Code: Select all

CustomSequenceFunction(conversant);

Re: Does DialogueActor look for the character gameOjbect only for children?

Posted: Mon Nov 16, 2020 8:48 pm
by Tony Li
Hi,

CustomSequenceFunction(CharacterName) will only use the GameObject named "CharacterName".

CustomSequenceFunction(speaker) and CustomSequenceFunction(listener): The dialogue entry node's speaker will be associated with a GameObject. See Character GameObject Assignments.