Auto-translated
Firstly, all of this is in the manual.
Secondly, here is a working example: PlayObjectAnimation("soldat1", "attack00", IDLE);
You place a monster, name it soldat1, and enjoy watching it swing its weapon in the air. The name is assigned in the scriptname line.