BIS_fnc_loop
Jump to navigation
Jump to search
Description
- Description:
/* Description: Loop stacked code/function with timing and conditional control Code and conditions are executed in non-scheduled environment Parameters: _this select 0: Action _this select 1: Parameters Returns: NOTHING Examples: ["initialize"] call BIS_fnc_loop; //Initializes game loop (not required if AUTO_INITIALIZE is set to true) ["terminate"] call BIS_fnc_loop; //Terminates game loop (not required if AUTO_TERMINATE is set to true) ["itemAdd", ["uniqueId", { hint str time; }, 5]] call BIS_fnc_loop; //Hints time every five seconds ["itemAdd", ["uniqueId", { hint str time; }, 120, "frames"]] call BIS_fnc_loop; //Hints time every 120 frames ["itemAdd", ["uniqueId", { hint str time; }, nil, nil, { !isNil { BIS_variable } }]] call BIS_fnc_loop; //Hints time every frame after BIS_variable is assigned ["itemAdd", ["uniqueId", { hint str time; }, 5, "seconds", { !isNil { BIS_variable } }]] call BIS_fnc_loop; //Hints time every five seconds after BIS_variable is assigned ["itemAdd", ["uniqueId", { hint str time; }]] call BIS_fnc_loop; //Hints time every frame ["itemRemove", ["uniqueId"]] call BIS_fnc_loop; //Remove item from loop with id "uniqueId" */ //Defines #define AUTO_INITIALIZE true #define AUTO_TERMINATE true //Parameters
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
Additional Information
- See also:
- See also needed
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