Nothing else to say, read the steps to reproduce.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- Scripting
Steps To Reproduce
- Load the eden editor.
- Create a mission, and call it whatever you wish.
- Put a character so you can play it.
- Save your mission.
- Get in your mission directory.
- Create a init.sqf file.
- Write the following code in it:
how_many_time_it_ran = 0; testingPreloadEvent = addMissionEventHandler ["PreloadFinished", { how_many_time_it_ran = how_many_time_it_ran + 1; }];
- Go back to the editor, and play the mission.
- Open the debug console, and paste the var how_many_time_it_ran in any "watch".
- Execute "openMap true;" the map will open, and how_many_time_it_ran var will remain unchanged.
- Execute "openMap false;" the map will close, and how_many_time_it_ran var will increment.