- Home /
The question is answered, right answer was accepted
Executing projectile script at particular animation frame?
I need to launch projectile when my character's animation hits a certain frame in the animation.
Suggestions?
My simple projectile script works fine but only at beginning of animation:
[CODE]function FireOn() {
var newBall:Transform = transform.Instantiate(spawnFireBall, Vector3(handTransform.position.z,handTransform.position.z,handTransform.position.z),transform.rotation); var movementFireBall = transform.forward;
}[/CODE]
Answer by jococo · May 09, 2013 at 08:26 AM
Use events from animation curves as explained here: Animation Events
Then see this if imported animation is read only:
Follow this Question
Related Questions
find animation ? 4 Answers
Spawning a projectile with a trigger 1 Answer
wrong rotation to animation per 0 Answers
Projectile Script! 0 Answers