IrrPlayNodeMD2Animation

section index

## NAME

IrrPlayNodeMD2Animation - Starts a default MD2 animation

## SYNOPSIS

IrrPlayNodeMD2Animation(*node.l, iAnimation.l)

## INPUTS

*node.l | - | pointer to a 'Animated' scene node.
iAnimation.l | - | An MD2 animation type, which should be played, for example #IRR_EMAT_STAND for the standing animation

## FUNCTION

Starts a default MD2 animation. With this method it is easily possible to start a Run, Attack, Die or whatever animation, if the mesh contained in this scene node is a md2 mesh. Otherwise, nothing happenes.

## EXAMPLE

       IrrPlayNodeMD2Animation(*node.l, #IRR_EMAT_ATTACK)

## RESULT

Returns true if successful, false if not.