think your making it harder than it is, simply do
if animseq(entity) = animation ;
if animtime(entity) = no ; frame number you want for sound
playsound clank1
endif
endif
also when extracting an animation sequence give it a handle , makes it easier to know whats what then .eg
walk = extractanimseq(animates, 1,15)
if animseq(entity) = animation ;
if animtime(entity) = no ; frame number you want for sound
playsound clank1
endif
endif
also when extracting an animation sequence give it a handle , makes it easier to know whats what then .eg
walk = extractanimseq(animates, 1,15)