BIS fnc loop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.14|= Game version ________________...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 5: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|1.14|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Loop stacked code/function with timing and conditional control. Code and conditions are executed in non-scheduled environment. |= 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
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_loop]]; --> |= Syntax
| param call [[BIS_fnc_loop]]; |= Syntax


|p1= |= Parameter 1
|p1= Sub-Function: [[String]] |= Parameter 1
|p2= Parameters: [[Array]] |= Parameter 2


| |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
|x1= <code>["itemAdd", ["uniqueId", { hint str time; }, 5]] [[call]] [[BIS_fnc_loop]];</code> |=


|x1= <code></code> |=  
|x2= <code>["itemRemove", ["uniqueId"]] [[call]] [[BIS_fnc_loop]];</code> |=  
____________________________________________________________________________________________
_______________________________________________________________________________________


| |= See also
| |= See also
Line 62: Line 35:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:loop}}]]
 
[[Category:Functions|{{uc:loop}}]]
[[Category:Arma 3:_Functions|log]]
[[Category:{{Name|arma3}}: Functions|{{uc:loop}}]]
[[Category:Take_On_Helicopters:_Functions|log]]
[[Category:Function Group: Debug|log]]

Revision as of 13:40, 24 March 2014

Hover & click on the images for description

Description

Description:
Loop stacked code/function with timing and conditional control. Code and conditions are executed in non-scheduled environment.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
param call BIS_fnc_loop;
Parameters:
Sub-Function: String
Parameters: Array
Return Value:
Nothing

Examples

Example 1:
["itemAdd", ["uniqueId", { hint str time; }, 5]] call BIS_fnc_loop;
Example 2:
["itemRemove", ["uniqueId"]] call BIS_fnc_loop;

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

Notes

Bottom Section