Not sure what you want to ask here in detail but maybe you mean animation canceling/weaving:
https://alcasthq.com/eso-weaving-beg...ion-canceling/
Afaik ther eis no API function to check if you are ready to attack with a light or heavy or other attacks.