Some of the Mannequin features are available through the use of some dedicated FlowGraph nodes:
For a tutorial about using some of these features, see Tutorial - Mannequin Scripting.
PlayMannequinFragment will look for a Fragment to play using the provided FragmentID and TagState. The fragment found will be wrapped in a Mannequin Action and queued with the given priority. The node can then also stop this action using the "ForceFinishLastQueued" input, or pause/resume the entire Mannequin ActionController.
Below is a basic example. You can see the Mannequin setup on the left, and how to use the PlayMannequinFragment node in FlowGraph on the right.
The following example shows how to use FragmentID-specific Tags (fragtags) to refer to a more specific fragment.
Multiple tags can be used: just separate them with the '+' character.
Important notes when using the PlayMannequinFragment node:
This node can be used to enslave a character to another one in order to play synchronized animations. Please refer to Mannequin Synchronizing Characters for more details on how synchronized animations work with Mannequin.
When enslaving a character you can optionally use a different Animation Database File (ADB) if needed. This depends on the way the slave is setup in the mannequin editor. If you leave this field empty, fragments will be queried from the host's animation database.
Below is a simple example. A character will be enslaved to another one, and then a fragment will be called on the host. If the "Test" FragmentID is setup accordingly, this will result in a synchronized animation getting triggered.
(CRYENGINE 3.7 and above)
Use this procedural clip to listen to events sent using the FlowgraphEvent procedural clip type.