====== ArmA 2 Exit.sqf ====== [[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]] When campaign mission is completed, file called exit.sqf is executed (yes also exit.sqs but for ArmA 2 we use exit.sqf). This can used for example in campaign to transfer weapons and soldier information to the next mission (saveVar and saveStatus). Exit.sqf file is called and executed automatically, you do not have to execVM it yourself. If this file is very long, it is executed... but cant get very far before mission ends so make sure you don't add very complex and absolutely **NO sleep or waitUntil commands** as they simply wont get executed there.