BIS fnc recompile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|gr1 = Diagnostic |GROUP1=
|gr1 = Diagnostic


| Can be used to recompile functions. |DESCRIPTION=
| Can be used to recompile functions.


| [mode] call [[BIS_fnc_recompile]] |SYNTAX=
| [mode] call [[BIS_fnc_recompile]]


|p1= mode (Optional, default 0):
|p1= mode (Optional, default 0):
Line 19: Line 19:
** 3 - Create missionNamespace variables and initialize mission
** 3 - Create missionNamespace variables and initialize mission
** 4 - Create only missionNamespace variables
** 4 - Create only missionNamespace variables
** 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile) |PARAMETER1=
** 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)




| [[Boolean]] |RETURNVALUE=
| [[Boolean]]


|x1= <code>[] [[call]] [[BIS_fnc_recompile]];</code> |EXAMPLE1=
|x1= <code>[] [[call]] [[BIS_fnc_recompile]];</code>


|x2= <code>[3] [[call]] [[BIS_fnc_recompile]];</code> |EXAMPLE2=
|x2= <code>[3] [[call]] [[BIS_fnc_recompile]];</code>


|x3= <code>["BIS_fnc_spawnVehicle"] [[call]] [[BIS_fnc_recompile]];</code> |EXAMPLE3=
|x3= <code>["BIS_fnc_spawnVehicle"] [[call]] [[BIS_fnc_recompile]];</code>


| [[compile]], [[compileFinal]] |SEEALSO=
| [[compile]], [[compileFinal]]
}}
}}



Revision as of 00:39, 18 January 2021

Hover & click on the images for description

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:
[] call BIS_fnc_recompile;
Example 2:
[3] call BIS_fnc_recompile;
Example 3:
["BIS_fnc_spawnVehicle"] call BIS_fnc_recompile;

Additional Information

See also:
compilecompileFinal

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


Bottom Section