Page 1 of 1

Enable gameplay between nodes

Posted: Fri Sep 29, 2023 8:14 pm
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 ,

Re: Enable gameplay between nodes

Posted: Fri Sep 29, 2023 9:57 pm
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)