i have a punching animation: when the punch is at a certain point i’d like to activate the method that causes damage to the enemy (at this point a raycast that calls the damage script on the enemy).
is this usually done through timers? how accurate is that after, say, 20 punches? or can i attach a note inside the animation file export, that triggers a script?
curious about this myself, as I’m working on a sort of sword-based combat engine, and I’m trying to work out a way to detect sword-collisions and apply recoil animations. How exactly are these events fired? Can you set them up in your modeler, and have the engine detect the cues, or do you have to set up the triggers via script only?