Page MenuHomeFeedback Tracker

Event "PreloadFinished" is fired when the map is closed.
Reviewed, NormalPublic

Description

Nothing else to say, read the steps to reproduce.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Load the eden editor.
  2. Create a mission, and call it whatever you wish.
  3. Put a character so you can play it.
  4. Save your mission.
  5. Get in your mission directory.
  6. Create a init.sqf file.
  7. 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;
}];
  1. Go back to the editor, and play the mission.
  2. Open the debug console, and paste the var how_many_time_it_ran in any "watch".
  3. Execute "openMap true;" the map will open, and how_many_time_it_ran var will remain unchanged.
  4. Execute "openMap false;" the map will close, and how_many_time_it_ran var will increment.

Event Timeline

alphadoh created this task.Aug 16 2016, 5:58 PM
razazel claimed this task.Aug 17 2016, 3:47 PM
razazel changed the task status from New to Reviewed.