C4 Engine
C4 Engine API Documentation

FrameAnimator::SetAnimation

Defined in:  C4Animation.h
Sets the animation resource from which the animator generates its output.
Prototype

void SetAnimation(const char *name);

Parameters
name The name of the animation resource.
Description
The SetAnimation function sets the current animation for a frame animator to the animation stored in the resource specified by the name parameter. Animations are typically stored in a subfolder having the model resource's name, and the name parameter should include this. For example, to apply an animation named "walk" to a model named "monster", the name parameter should point to the string "monster/walk". (A forward slash should be used on all platforms.)