Hi,
I’ve got a problem that I’ve so far been unable to find a solution for, either via Script Reference or through these forums or Google searches. Animation events are great fro triggering things in your scripts. However, in our case, we need to know the time of the animation event prior to triggering the animation so that we can sync up other things in the game to happen at appropriate times before and after the actual Animation Event in question. This is further complication by the fact that there are many variations of the object class in question that can trigger said event, and the each flavor of object has slightly different animations, and thus different timing for the event in question.
So far, I have been unable to find any way to examine the animation itself to find out the time/frame of the trigger event. I really need to find this information to be able to correctly sync up the other things that have to happen. I can’t simply use a prior event to trigger the syncing as there are a lot of variables and pre-calculation of motion that must go on in order to get things to work out correctly.
So, bottom line, is there any runtime method to find out the time/frame of an animation event? We are currently working around this by hard-coding in that time in a separate data structure. Obviously this is not ideal as the art continues through changes, so any help here would be greatly appreciated.
= Ed =