playMaker

Author Topic: Animator random help needed please!  (Read 2044 times)

tukor

  • Playmaker Newbie
  • *
  • Posts: 4
Animator random help needed please!
« on: January 20, 2017, 10:06:05 AM »
Hi there.
I have a npc with some idle animations and i want to random them.
In the animator i have the base layer wich leads to a sub-state wich holds all the possible animations.
Each one of them has an int condition (1,2,3,4...).

Now i need to know how to make them randmly play from Playmaker...
Wich action, so it makes change to 1, or to 3 and so...?


600

  • Beta Group
  • Hero Member
  • *
  • Posts: 714
    • Flashing Lights
Re: Animator random help needed please!
« Reply #1 on: January 20, 2017, 10:19:37 AM »
Hi, use Random Int and Set Animator Int actions.

tukor

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Animator random help needed please!
« Reply #2 on: January 20, 2017, 10:25:33 AM »
Hey, Sir!

Thats just what im trying.. with no luck.
How i connect it please?

Thank you!!!

tukor

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Animator random help needed please!
« Reply #3 on: January 20, 2017, 10:28:44 AM »
I mean, set animator int lets me use the "idleanimID" i used as parameter in animator.

But random int... how i do connect it to ser animator int?

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 714
    • Flashing Lights
Re: Animator random help needed please!
« Reply #4 on: January 20, 2017, 10:34:31 AM »
Create a variable and set that in Random Int slot. Then in SetAnimator set the same variable.

tukor

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Animator random help needed please!
« Reply #5 on: January 21, 2017, 09:57:12 AM »
Ok, finally i got it working... thanks to you.

So

THANK YOU :D!!!