BIS fnc runLater: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
||
Line 34: | Line 34: | ||
["uniqueId", { hint str time; }] call BIS_fnc_runLater;</code> | ["uniqueId", { hint str time; }] call BIS_fnc_runLater;</code> | ||
}} | }} | ||
[[Category:Functions|{{uc:runLater}}]] | [[Category:Functions|{{uc:runLater}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:runLater}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:runLater}}]] |
Revision as of 23:36, 31 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Program Flow
Syntax
- Syntax:
- Syntax needed
- Parameters:
- Unique Id : String
- Code/function that is executed later : [Code, String]
- The timer value (can be in seconds or frames) : Number
- The timer type, can be "seconds" or "frames" : String
- The custom condition, code is only executed if timer is validated and condition is met : Code
- Return Value:
- Return value needed
Examples
- Example 1:
//Hints current game time in the next frame after 5 seconds have passed ["uniqueId", { hint str time; }, 5] call BIS_fnc_runLater;
- Example 2:
//Hints current game time in the next frame after 120 frames have passed ["uniqueId", { hint str time; }, 120, "frames"] call BIS_fnc_runLater;
- Example 3:
//Hints current game time in the next frame after BIS_variable is assigned ["uniqueId", { hint str time; }, nil, nil, { !isNil { BIS_variable } }] call BIS_fnc_runLater;
- Example 4:
//Hints current game time in the next frame after 5 seconds have passed and BIS_variable is assigned ["uniqueId", { hint str time; }, 5, "seconds", { !isNil { BIS_variable } }] call BIS_fnc_runLater;
- Example 5:
//Hints current game time in the next frame ["uniqueId", { hint str time; }] call BIS_fnc_runLater;
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