Cutscene and custom animation

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

Cutscene and custom animation

Post by hrohibil »

Hi Toni

Can I play cutscene and custom animation same time?

So during conversation I went from another camera to focus on a table and then play a specific NPC animation?
Cheers
User avatar
Tony Li
Posts: 22150
Joined: Thu Jul 18, 2013 1:27 pm

Re: Cutscene and custom animation

Post by Tony Li »

Hi,

Yes. Use the Camera() sequencer command and Animation***() commands. See: Cutscene Sequence Tutorials.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Cutscene and custom animation

Post by hrohibil »

I am looking though the docs and videos-
Clearly i am missing something here, but i cant see, to find how to add both animation and cutscene is same node?

EDIT:

Also i have loop on the animation checked off- How do i only play the animation once instead of loop
User avatar
Tony Li
Posts: 22150
Joined: Thu Jul 18, 2013 1:27 pm

Re: Cutscene and custom animation

Post by Tony Li »

What do you mean by cutscene?

Did you go through the Cutscene Sequence Tutorials?

If you use AnimatorPlayWait() and make it send a message that changes the animator state, it will play the animation only once even if it's set to loop. Example:

Code: Select all

AnimatorPlayWait(Walk)->Message(Done);
AnimatorPlayWait(Idle)@Message(Done)
The first command will play the Walk animation once and then send the message "Done," which will cause the second command to play.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Cutscene and custom animation

Post by hrohibil »

With cutscene i mean, that during a convsasation in one of the nodes i want the camera to change to a second came which has focus on something and while this focus is on, i want a specific animation to play.

Does this look correct:
My camera name is CameraSHOPMANBOOK..



Camera(CameraSHOPMANBOOK,, 4);
{{default}};
AnimatorPlayWait(shopmanhand)->Message(Done);
AnimatorPlayWait(Convo_11_Listening_Loop_IP)@Message(Done)
User avatar
Tony Li
Posts: 22150
Joined: Thu Jul 18, 2013 1:27 pm

Re: Cutscene and custom animation

Post by Tony Li »

I'll reply in your other thread since they look like they may be duplicates.
Post Reply