BIS fnc recompile: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 15: | Line 15: | ||
|gr1= Diagnostic | |gr1= Diagnostic | ||
| Can be used to recompile functions. | |descr= Can be used to recompile functions. | ||
{{Feature|informative|As a security measure, functions are by default protected against rewriting during the mission. This restriction does '''not''' apply to: | |||
* missions previewed from the editor | |||
* missions with the following attribute in [[Description.ext]]: <syntaxhighlight lang="cpp">allowFunctionsRecompile = 1;</syntaxhighlight> | |||
}} | |||
| [mode] call [[BIS_fnc_recompile]] | |s1= [mode] call [[BIS_fnc_recompile]] | ||
|p1= mode (Optional, default 0): | |p1= mode (Optional, default 0): | ||
Line 31: | Line 35: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>[] call BIS_fnc_recompile;</sqf> | ||
|x2= < | |x2= <sqf>[3] call BIS_fnc_recompile;</sqf> | ||
|x3= < | |x3= <sqf>["BIS_fnc_spawnVehicle"] call BIS_fnc_recompile;</sqf> | ||
|seealso= [[compile]] | |seealso= [[compile]] [[compileFinal]] | ||
}} | }} | ||
Latest revision as of 23:11, 12 July 2022
Description
- Description:
- Can be used to recompile functions.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [mode] call BIS_fnc_recompile
- Parameters:
- mode (Optional, default 0):
- String - name of the function to be recompiled
- Number - can be:
- 0 - Autodetect what compile type should be used
- 1 - Forced recompile of all the things
- 2 - Create only uiNamespace variables (used in UI)
- 3 - Create missionNamespace variables and initialize mission
- 4 - Create only missionNamespace variables
- 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- compile compileFinal
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note