Save and close the script editor. Open the map editor and your map again, go to Map Properties Tree => MapScript => Click on the line => 3 dots => In the properties window that appears, find the first property line on the top right and enter the path to the script file: /Maps/SingleMissions/MapName/MainScript.lua. If the line does not disappear after pressing Enter, then you have done everything correctly. Save, close the editor. Open the script editor, your map, double-click on the MainScript.lua file to open it, and then enter your script.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________