An example for animating a burst during combat:
sound := sfx_build_weapon_name(snd_weapon_attack, weapon_obj, hit_left_weapon_primary, attacker);
reg_anim_combat_check(0);
reg_anim_clear(attacker);
reg_anim_begin();
reg_anim_animate(attacker,ANIM_fire_burst, -1)...