That was mostly correct. However, use ent_frame not ent_cycle. Look up ent_frame in the C-Script manual for more details.