Code:
//
// Player animation.
//
enum PLAYER_ANIM
{
PLAYER_IDLE,
PLAYER_WALK,
PLAYER_JUMP,
PLAYER_SUPERJUMP,
PLAYER_DIE,
PLAYER_ATTACK1,
PLAYER_ATTACK1_RIGHT,
PLAYER_SMALL_FLINCH,
PLAYER_LARGE_FLINCH,
PLAYER_RELOAD,
PLAYER_HOLDBOMB
};
Don't forget to pass the player's id too.
But what you are doing won't work, because SetAnimation is called all the time. So you better hook it and supercede the current animation.
__________________