Moving During Cutscene / Dialogue (Invector)

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DeidreReay
Posts: 93
Joined: Wed Jan 22, 2020 1:20 pm

Moving During Cutscene / Dialogue (Invector)

Post by DeidreReay »

Using Invector and Cinemachine integrations. Hoping to be able during a few specific cutscenes able to move around . Cant seem to figure it our. Any ideas?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Moving During Cutscene / Dialogue (Invector)

Post by Tony Li »

Hi,

Does the cutscene sequence happen during a conversation?

If so, then if your player GameObject has a Dialogue System Invector Bridge component, it will pause the player so it can't move around.

To allow the player to move around during some part of the conversation, call the UnpauseCharacter() method on the player. You can use the SendMessage() sequencer command or a scene event. Here's an example using SendMessage():

unpauseInvector.png
unpauseInvector.png (30.64 KiB) Viewed 505 times

Since the player is the speaker of both of those lines, I sent the message to the speaker. If the player was the listener (e.g., on a gray node), I would have used this instead:

Code: Select all

SendMessage(UnpausePlayer, , listener)
The middle node (spoken by the NPC) waits for a sequencer message "GotWrench". I'm assuming in this example that, when the player picks up the wrench, this C# code runs to send that message to the Dialogue System's sequencer:

Code: Select all

Sequencer.Message("GotWrench");
DeidreReay
Posts: 93
Joined: Wed Jan 22, 2020 1:20 pm

Re: Moving During Cutscene / Dialogue (Invector)

Post by DeidreReay »

Thank you this is working out great. Have another bit confusing question on top of this..

Using timeline and the actual invector player and dialogue. Dialogue sequence starts a timeline and on that timeline has the actual invector player supposed to do an animation... The animation offsets though never seem to work and that animation always plays right where the invector player is standing (Hoping to have animation que off at exact location).. ANY IDEAS?? (i know this is maybe more on the timeline or invector side then dialogue system, but everyone seems to be at a loss here..)
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Moving During Cutscene / Dialogue (Invector)

Post by Tony Li »

This is probably a Timeline issue, not specifically related to Invector or the Dialogue System. In the Animation track properties, try setting Track Offsets to Apply Scene Offsets. If that doesn't work, experiment with the other settings.
Post Reply