can you give me a full example please???

something like that?:

action test()
{
ent_animate(...
}