#Is there a way to create a delay in the animation controller ?

5 messages · Page 1 of 1 (latest)

amber sapphire
#

Hi, i need to add a 3s delay before transitioning to an other state in the BP animation controller. I have been looking for a molang function to do it but no luck. Can someone help ? thx.

slim ridgeBOT
#
Thanks for asking your question!

Once you have finished, please close your thread.

amber sapphire
#
                    "on_entry": ["/function player/levels/level_10"],
                    "transitions": [
                        { "level_10": " DELAY 3 SECONDS" }
                    ]
                }
surreal flicker
#

@amber sapphire You could record the the time when the entity enters that state and see if three seconds has passed.

{
  "level_10_loop": {
    "on_entry": [
      "/function player/levels/level_10",
      "variable.time = query.time_stamp + 60;"
    ],
    "transitions": [
      {
        "level_10": "query.time_stamp > variable.time"
      }
    ]
  }
}
#

Alternatively you could create an animation that is three seconds long, and play that animation when you enter the loop state. Set the transition to occur when that animation is finished.