BIS fnc recompile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Fix description and add more examples)
Line 12: Line 12:
| [mode] call [[BIS_fnc_recompile]] |SYNTAX=
| [mode] call [[BIS_fnc_recompile]] |SYNTAX=


|p1= mode: [[Number]] or [[String]] - [[String]] should be the name of a function. Only  this function will be recompiled. If [[Number|number]] the following modes are available:<br>
|p1= mode (Optional, default 0):
*0 - Autodetect what compile type should be used '''(Default)'''
* [[String]] - name of the function to be recompiled
*1 - Forced recompile of all the things
* [[Number]] - can be:
*2 - Create only uiNamespace variables (used in UI)
** 0 - Autodetect what compile type should be used
*3 - Create missionNamespace variables and initialize mission
** 1 - Forced recompile of all the things
*4 - Create only missionNamespace variables
** 2 - Create only uiNamespace variables (used in UI)
*5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)|PARAMETER1=
** 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) |PARAMETER1=


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 25: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[] [[call]] [[BIS_fnc_recompile]];</code> |=
|x1= <code>[] [[call]] [[BIS_fnc_recompile]];</code> |EXAMPLE1=
 
|x2= <code>[3] [[call]] [[BIS_fnc_recompile]];</code> |EXAMPLE2=
 
|x3= <code>["BIS_fnc_spawnVehicle"] [[call]] [[BIS_fnc_recompile]];</code> |EXAMPLE3=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 08:55, 8 April 2020

Hover & click on the images for description

Description

Description:
Can be used to recompile functions.
Execution:
call
Groups:
Uncategorised

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


Notes

Bottom Section