Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2894
Auto-translated
I noticed a peculiar behavior: I create a treasure with a specific scripted name: ``` CreateTreasure('some_name', TREASURE_CHEST, 10, 111, 118, GROUND, 0) ``` Then, I try to access it using that name: ``` print(IsObjectExists('some_name')) ``` It returns nil, meaning it doesn't find an object with that name, even though the treasure itself appears on the map. In a similar function, CreateStatic, everything works as expected. Is this a misunderstanding on my part, or a bug in the developers' code?