Script within Bones animation !?

Hi,

Is it possible to set a Script in a specifique frame of an animation imported from 3D soft ?

it means that this script will be executed as soon as the animation get that Frame … ( animation of an imported caracter for example ).

yes, thats possible through animation events you add through code or the animation editor

thanks, but …

i didn’t found it , can u just give a simple example like:

My caracter has an animation clip named “jump” for example that contain 50 Frames , i want at frame 21 a specifique script run ! and at 37 other one …etc

(for the moment i can do it by using " animation[“jump”].time " , but it’ll result in a huge long scripts since u must write many conditions")

An easiest other way would be nice , Thanks !