Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2366
Auto-translated
1. In the tiles tab, select your path, but slightly below, click the eraser. Then, erase it.
2. In the properties tree, find "map script." Create a new script. Or, go to the general properties of the map, find the "script" tab, and click "edit script." It may lag and crash.
3, 4: Using scripts.

3. In the script, enter:
PlayObjectAnimation("creature name", "death", ONESHOT_STILL);

In the editor, place the creature, find its name in the list on the right, and give it any name. Then, insert the above line into the script, replacing "creature name" with the name you assigned to it. (Don't forget the quotes).

There are many other animations; they are listed in the scripting manual.

4. Insert into the script:
SetObjectEnabled('name', nil)

Similarly, I explained above what to write instead of "name."

You can find the scripting manuals in the game folder, in a folder called "Editor Documentation."

Whatever