{"name":"BIS_fnc_recompile","title":"BIS fnc recompile","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_recompile","revid":379508,"updated":"2026-10-31T00:28:06Z","groups":["Diagnostic"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Can be used to recompile functions.\n\n> [!NOTE]\n> As a security measure, functions are by default protected against rewriting during the mission. This restriction does **not** apply to:\n>\n> - missions previewed from the editor\n> - missions with the following attribute in Description.ext:\n>\n>   ```cpp\n>   allowFunctionsRecompile = 1;\n>   ```","syntaxes":[{"syntax":"[mode] call BIS_fnc_recompile","params":[{"name":"mode","type":"String or Number","optional":true,"default":"0","description":"String - name of the function to be recompiled\n- Number - can be:\n  - 0 - Autodetect what compile type should be used\n  - 1 - Forced recompile of all the things\n  - 2 - Create only uiNamespace variables (used in UI)\n  - 3 - Create missionNamespace variables and initialize mission\n  - 4 - Create only missionNamespace variables\n  - 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)","type_expr":"String | Number","text":"mode: String or Number - (Optional, default 0)\n\n- String - name of the function to be recompiled\n- Number - can be:\n  - 0 - Autodetect what compile type should be used\n  - 1 - Forced recompile of all the things\n  - 2 - Create only uiNamespace variables (used in UI)\n  - 3 - Create missionNamespace variables and initialize mission\n  - 4 - Create only missionNamespace variables\n  - 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["[] call BIS_fnc_recompile;"]},{"code":["[3] call BIS_fnc_recompile;"]},{"code":["[\"BIS_fnc_spawnVehicle\"] call BIS_fnc_recompile;"]}],"see_also":["compile","compileFinal"]}