BIS fnc loop: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.14|= Game version ________________...") |
mNo edit summary |
||
Line 18: | Line 18: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>["itemAdd", ["uniqueId", { hint str time; }, 5]] [[call]] [[BIS_fnc_loop]];</code> |= | |x1= <code>//Hints time every five seconds | ||
["itemAdd", ["uniqueId", { hint str time; }, 5]] [[call]] [[BIS_fnc_loop]];</code> |= | |||
|x2= <code>//Removes stacked loop with id of uniqueId | |||
["itemRemove", ["uniqueId"]] [[call]] [[BIS_fnc_loop]];</code> |= | |||
|x3= <code>//Hints time every frame after BIS_variable is assigned | |||
["itemAdd", ["uniqueId", { hint str time; }, nil, nil, { !isNil { BIS_variable } }]] call BIS_fnc_loop;</code> |= | |||
|x4= <code>//Hints time every five seconds after BIS_variable is assigned | |||
["itemAdd", ["uniqueId", { hint str time; }, 5, "seconds", { !isNil { BIS_variable } }]] call BIS_fnc_loop;</code> |= | |||
|x5= <code>//Hints time every frame | |||
["itemAdd", ["uniqueId", { hint str time; }]] call BIS_fnc_loop;</code> |= | |||
|x6= <code>//Remove item from loop with id "uniqueId" | |||
["itemRemove", ["uniqueId"]] call BIS_fnc_loop;</code> |= | |||
_______________________________________________________________________________________ | _______________________________________________________________________________________ | ||
Revision as of 12:53, 24 March 2014
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:
//Hints time every five seconds ["itemAdd", ["uniqueId", { hint str time; }, 5]] call BIS_fnc_loop;
- Example 2:
//Removes stacked loop with id of uniqueId ["itemRemove", ["uniqueId"]] call BIS_fnc_loop;
- Example 3:
//Hints time every frame after BIS_variable is assigned ["itemAdd", ["uniqueId", { hint str time; }, nil, nil, { !isNil { BIS_variable } }]] call BIS_fnc_loop;
- Example 4:
//Hints time every five seconds after BIS_variable is assigned ["itemAdd", ["uniqueId", { hint str time; }, 5, "seconds", { !isNil { BIS_variable } }]] call BIS_fnc_loop;
- Example 5:
//Hints time every frame ["itemAdd", ["uniqueId", { hint str time; }]] call BIS_fnc_loop;
- Example 6:
//Remove item from loop with id "uniqueId" ["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