Playing an animation once

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
shabadam
Posts: 10
Joined: Sat Jul 03, 2004 11:39 am
Location: Italy

Playing an animation once

Post by shabadam »

I there a way to play a md2 animation only once after a key press ?
I have a md2 model of a rifle , that has a shoot + reload animation , and I want to play the animation entirely and only once after pressing ctrl.
By now I have only managed to have the animation played in a loop , and plus it stops playing immediately after releasing the ctrl key.
Please help
thanx
Post Reply