Play PC voice lines in response menu
Posted: Wed Jun 03, 2020 3:08 am
Hey, I'm looking for a way to play voice lines in the response menu before selecting a response. I've added a button under the Response Button Template that, when clicked, would play the voice line but I'm having trouble figuring out how to get it to play the correct one.
The idea is that the player could listen to the possible response options before making a decision (this is to help players who might have trouble reading).
So far I've tried constructing an entryID similar to entrytags:
However the button for each different response refers to the same ID, which is the same as the previous dialogue entryID and not any of the following PC IDs.
Any help would be appreciated!
The idea is that the player could listen to the possible response options before making a decision (this is to help players who might have trouble reading).
So far I've tried constructing an entryID similar to entrytags:
Code: Select all
public void constructCommand() {
var dialogueEntry = DialogueManager.CurrentConversationState.subtitle.dialogueEntry;
int conversationID = dialogueEntry.conversationID;
int entryID = dialogueEntry.id;
string entrytag = "Player_" + conversationID + "_" + entryID;
DialogueManager.PlaySequence("AudioWait(" + entrytag + ")");
}
Any help would be appreciated!