Enable gameplay between nodes

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Enable gameplay between nodes

Post by hrohibil »

Hello Tony

I have a good conversation using the Invector TPS. All integration setup as per docs.
Now in my branch after the player obtains a key then next time he returns, the conversation goes into another node due some conditions i setup , what I want is between two nodes I want to enables some game objects on a table so player can pick one and then then the next node should continue again? Does that make sence, basiclly player can pick a gun ,
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Enable gameplay between nodes

Post by Tony Li »

Hi,

What if the player just walks away instead picking up a gun? (Suggestion: Set the Dialogue System Trigger to stop the conversation if the player gets too far away.)

Anyway, to enable gameplay in a node, you can create an empty node and set the Sequence to:

Code: Select all

SetDialoguePanel(false);
SendMessage(UnpauseCharacter, , Player)
where Player is the name of the player GameObject.

To pause gameplay again:

Code: Select all

SetDialoguePanel(true);
SendMessage(PauseCharacter, , Player)
Post Reply