ID:133515
 
GetFrame proc (icon)

Format:
GetFrame(icon_state,dir=0,moving=0)

Returns:
frame: the number of animation frames used (1 is the 1st frame)

Args:
icon_state: a specific icon_state to use (may be null)
dir: a specific direction of this icon to use
moving: non-zero for only movement states, 0 for non-movement states, or null (default) for either

Example:

flick("finishing attack-1",src)
var/icon/I = new('player.dmi')
sleep(I.GetFrame("finishing attack-1"))
flick("finishing attack-2",src)


See the usefulness?