need a simple script for a mod.
alright so im new to these forums. as a quick introduction, my name is Olli and i am currently working on creating a modification for the game Crysis.
anyways, now to the script.
I have a flag animation on an editable mesh object (which is a plane). i made it with the cloth tool.
now i need a script which places a bone on every single vertex of the flag (it has around 150 vertices) and the script should also align the bones to move according to the vertices for the duration of the animation (a bit less than 500 frames)
so basically, i want to transfer the vertex animation of my flag in to a bone animation, which i can then in turn import in to the engine.