How to call animation by name
var action = mixer.clipAction(gltf.animations[0]);
each animaion have a name mixer.clipAction(gltf.animations[0].name i wanted to call them by name i eg. var action = mixer.clipAction(gltf.animations[attack);
attack
how to do that?
ok i did it myself
action = mixer.clipAction(gltf.animations[gltf.animations.map(function(e) { return e.name; }).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