Page 1 of 1

[SOLVED]Is there any way to get an Actor ID from an NPC who's speaking?

Posted: Mon Sep 14, 2020 4:29 am
by muramasa
Hi Tony, help... I have a problem!

Is there any way to get an Actor ID from an NPC who's speaking?
I've crawled through the article and it seems like it has to be code, but my background is in art and I can't write code at all...

I used Playmaker and your powerful Dialogue system to develop my game, and for some reason, I had to separate the Dialogue Actor from the animated Actor. For this reason, I can't use the AnimatorPlay(,,) command in Sequence.

So I devised another way for my character to speak with both animation and voice, and with your powerful Dialogue system, I can do it by writing a line of command in the Script block each time.

However... I need a way to get the ACTOR ID of the NPC who is speaking...

Attached is my design flow so you can see why I need an ACTOR ID and how I'm going to use it.
Question.jpg
Question.jpg (165.66 KiB) Viewed 555 times


Please help me.

Re: [HELP]Is there any way to get an Actor ID from an NPC who's speaking?

Posted: Mon Sep 14, 2020 9:55 am
by Tony Li
Hi,

I just updated the PlayMaker Support package on the Extras page. The Get Current Conversation Info action can now store the current speaker's and listener's name and actor ID.

Re: [HELP]Is there any way to get an Actor ID from an NPC who's speaking?

Posted: Mon Sep 14, 2020 3:43 pm
by muramasa
OMG! you are the best!! thank you!!!

Re: [HELP]Is there any way to get an Actor ID from an NPC who's speaking?

Posted: Mon Sep 14, 2020 3:53 pm
by Tony Li
Glad to help!