Animations how to call by name

How to call animation by name

var action = mixer.clipAction(gltf.animations[0]);

each animaion have a name
i wanted to call them by name
i eg.
var action = mixer.clipAction(gltf.animations[attack);

how to do that?

:smiley: ok i did it myself

action = mixer.clipAction(gltf.animations[ { return; }).indexOf(‘idle’)]);

but now i wanted to set random of skill appered randomly in eg 5 sec
i have skill_1, skill_2 skill_3 thah shoud be appered randomly