Problem with Idle animation (random character animation)

  • #1, by tomgamerWednesday, 06. November, 21:10 2 weeks ago
    Hello everybody!

    I have a problem with an idle animataion which I created for NPC (not a main character).

    I created "idle" under "random animations".
    That animation is about 2 frames.

    But the animation never shows in the scene.
    Talking animation works.
    NPC just stand on the place.

    So my question is: How to start random animation? Did I miss something?

    Thank you.

    Newbie

    4 Posts


  • #2, by afrlmeWednesday, 06. November, 21:51 2 weeks ago
    Random animations occur randomly every 10-30 seconds (by default if I remember correctly) providing the character/npc has not been issued any destinations, isn't walking, isn't talking, or isn't playing any manually started animations.

    Idle animations are supposed to go in "standing animations".

    Random animations are for things such as the character blinking or scratching their head, or shuffling around on their feet, etc.

    Imperator

    6624 Posts

  • #3, by tomgamerFriday, 08. November, 19:02 A week ago
    Random animations occur randomly every 10-30 seconds (by default if I remember correctly) providing the character/npc has not been issued any destinations, isn't walking, isn't talking, or isn't playing any manually started animations.

    Idle animations are supposed to go in "standing animations".

    Random animations are for things such as the character blinking or scratching their head, or shuffling around on their feet, etc.
    Thank you.
    Yeah, thats exactly what I thinking.
    Idle is for me animation like blinking eyes.
    Do you know where I can change that time?
    Thank you.

    Newbie

    4 Posts

  • #4, by afrlmeFriday, 08. November, 19:26 A week ago
    Unfortunately the only way to change those values are via scripting & you have to sort them out for each characters outfits.

    Characters["Tom"].CurrentOutfit.RandomMinTime = 1000 -- 1 seconds
    Characters["Tom"].CurrentOutfit.RandomMaxTime = 3000 -- 3 seconds
    1
    2

    You can manually specify each outfit too instead of just the current outfit.

    It's also possible to implement the animation frames inside of your actual idle animation frames & control which animation frame range to loop - also done via scripting.

    Here's a tutorial I created a while back for creating dynamic character blinking using the latter method I just mentioned.

    Imperator

    6624 Posts

Write post