Hi tony
I hope you Doing Well
I'm Just Wonder if there A WAY to Play A random Animation...
For Example When The NPc Enter to Area Play Idle_1
End When enter For the Second Time Play Idle_2
Random Animation
Re: Random Animation
Hi,
Since you're asking in the Dialogue System forum, I'll assume you want to do this in a conversation using a sequencer command. You can use the RandomElement() Lua function.
Example Sequence:
Since you're asking in the Dialogue System forum, I'll assume you want to do this in a conversation using a sequencer command. You can use the RandomElement() Lua function.
Example Sequence:
Code: Select all
AnimatorPlayWait([lua( RandomElement("Idle_1|Idle_2") )])