Auto-translated
orlan-1, in the map archive, there is a special file called MapScript.lua. You need to write the Lua code there; it will be executed when the map starts. In the map editor, there is an option in the menu to edit this file.
Also, the first parameter of the PlayObjectAnimation function must be a string. If you gave an object a name in the editor, you need to enclose that name in single or double quotes when passing it to the function.