#Is there a way to create a delay in the animation controller ?
5 messages · Page 1 of 1 (latest)
Thanks for asking your question!
Once you have finished, please close your thread.
Use the /close command or button below.
"on_entry": ["/function player/levels/level_10"],
"transitions": [
{ "level_10": " DELAY 3 SECONDS" }
]
}
@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.