1. Post #1
    Gold Member
    Bynari's Avatar
    August 2005
    513 Posts
    I have an entity that uses a model (a mining drill) with three animations: there's the startup animation where the drill fires up and lowers into the ground, an active drilling animation which is looped, and a shutdown animation where the drill slows and is retracted.

    What I need to do is play the startup sequence, and then transition into the looped drilling animation. What is the best way to trigger the second animation as soon as the first one is complete?

  2. Post #2
    Al Capone's Avatar
    March 2011
    8 Posts
    local sched = ai_schedule.New()
    sched:AddTask("PlaySequence", {Name = "Sequence1"})
    sched:AddTask("PlaySequence", {Name = "Sequence2"})
    The PlaySequence task completes right after the animation finishes, see Source.


    Since this is not a NPC I am not sure if my idea makes any sense.

  3. Post #3
    diaoyudao shi ZHONGGUO de
    Disseminate's Avatar
    December 2007
    4,323 Posts
    Entity.GetCycle will be 1 when the sequence is finished