
Prototype: GemRB.SetAnimation(WindowIndex, ControlIndex, BAMResRef[, Cycle])

Metaclass Prototype: SetAnimation(BAMResRef[, Cycle])

Description:  Sets the animation of a Control (usually a Button) from a BAM file. Optionally an animation cycle could be set too.

Parameters: 
WindowIndex - the window control id
ControlID - the id of the target control
BAMResRef - resref of the animation
Cycle - (optional) number of the cycle to use

Return value: N/A

See also: SetAnimationPalette

