Page 1 of 1

Cutscene and custom animation

Posted: Sat Feb 26, 2022 7:43 pm
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

Re: Cutscene and custom animation

Posted: Sat Feb 26, 2022 8:47 pm
by Tony Li
Hi,

Yes. Use the Camera() sequencer command and Animation***() commands. See: Cutscene Sequence Tutorials.

Re: Cutscene and custom animation

Posted: Sun Feb 27, 2022 6:36 pm
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

Re: Cutscene and custom animation

Posted: Sun Feb 27, 2022 7:43 pm
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.

Re: Cutscene and custom animation

Posted: Mon Feb 28, 2022 2:21 am
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)

Re: Cutscene and custom animation

Posted: Mon Feb 28, 2022 10:19 am
by Tony Li
I'll reply in your other thread since they look like they may be duplicates.