menu_bookDocumentation
Animation System: Animgraph, Skeletal Animation, IK, and Ragdolls
s&box uses Valve's Animgraph system for character animation, providing a powerful node-based animation state machine.
Key Features
- Animgraph — node-based animation state machines for complex character behaviour
- Skeletal animation and blending between states
- Inverse Kinematics (IK) for foot placement, hand targeting
- Animated ragdolls for physics-driven death and hit reactions
- Morph targets for facial animation and blend shapes
- Animation events for triggering sounds, effects, and gameplay at specific frames
Movie Maker
Movie Maker is a timeline-based editor for animating properties in a scene. Ideal for in-game cutscenes, editing trailers, coordinating timed events, and creating skeletal animations — all without leaving the s&box editor.
Usage with CitizenAnimationHelper
For Citizen models, use CitizenAnimationHelper to drive animations from code:
CSHARP
var animHelper = Components.Get<CitizenAnimationHelper>();
animHelper.IsGrounded = true;
animHelper.WithVelocity( velocity );
animHelper.WithWishVelocity( wishVelocity );
animHelper.DuckLevel = isDucking ? 1f : 0f;
animHelper.MoveStyle = CitizenAnimationHelper.MoveStyles.Run;
Was this helpful?