Official description
// FAK - OEI 5/16/05 // Returns TRUE if it found an object to play a custom animation one // oObject is the object to play the animation on // sAnimationName is the name of the gr2 to play // nLooping is 0 for one-off, 1 for loop // fSpeed is the playback speed: 1.0 is default, < 0 is backwards int PlayCustomAnimation( object oObject, string sAnimationName, int nLooping, float fSpeed = 1.0f );
Overview
Play a custom animation using the animation file name (GR2 file).
Parameters
oObject: Object to play the animationsAnimationName: Name of the animation to play*1attack01will play the 1attack01 animation matching the creature current weapon state. The star can only be used to replace stance.UnA_1attack01will play the unarmed 1attack01 animation.P_HHM_UnA_1attack01will play the unarmed 1attack01 animation as played by a human male player. It won't play properly on other races.%will play default / idle animation
- nLooping: True to make the animation loop indefinitely
- fSpeed: Does not work