OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: nominesine on 24 Nov 2010, 18:01:07
-
Remind me: What do I need to do nowadays, scripting wise, to make a completed SP scenario 'tick off' with a green box in the scenario menu once it's completed?
-
In your description.ext put the following:
doneKeys[] = {"<insert your own key name here>"};And when the mission is completed successfully you must use this command:
activateKey "<insert the same key name here>";Hope that helps. ;)
-
The "insert your own key name here" part of this should be the exact file name of the saved mission (the actual file name, not the mission name set up in the Intel section of the editor.
So for example if your mission is titled "Operation Bitchslap" and you save it as "112010OA061RC.Desert_E" (or whatever you consistently save your file names as), the description file part should have the following:
doneKeys[]={112010OA061RC};
And when the mission completes, you would have the following (I usually put it at the end of my outro.sqf):
activateKey "112010OA061RC";
-
i used this feature in my Revenge remake, and i named the key bink_sp_revenge. semi-relevant to my mission.
-
The "insert your own key name here" part of this should be the exact file name of the saved mission (the actual file name, not the mission name set up in the Intel section of the editor.
Maybe this is true for practical reasons. But it works with any keyname, as long as it is a unique name. I use my ofpec tag to avoid conflicts with other peoples keys.