BIS fnc runLater: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Stack code/function that should be run later, after some time/frames or/and custom condition. |= Description
| Stack code/function that should be run later, after some time/frames or/and custom condition. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| param call [[BIS_fnc_runLater]]; |= Syntax
| param call [[BIS_fnc_runLater]]; |SYNTAX=


|p1= Unique Id : [[String]] |= Parameter 1
|p1= Unique Id : [[String]] |PARAMETER1=
|p2= Code/function that is executed later : <nowiki>[</nowiki>[[Code]], [[String]]<nowiki>]</nowiki> |= Parameter 2
|p2= Code/function that is executed later : <nowiki>[</nowiki>[[Code]], [[String]]<nowiki>]</nowiki> |PARAMETER2=
|p3= The timer value (can be in seconds or frames) : [[Number]] |= Parameter 3
|p3= The timer value (can be in seconds or frames) : [[Number]] |PARAMETER3=
|p4= The timer type, can be "seconds" or "frames" : [[String]] |= Parameter 4
|p4= The timer type, can be "seconds" or "frames" : [[String]] |PARAMETER4=
|p5= The custom condition, code is only executed if timer is validated and condition is met : [[Code]] |= Parameter 5
|p5= The custom condition, code is only executed if timer is validated and condition is met : [[Code]] |PARAMETER5=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 37: Line 37:
_______________________________________________________________________________________
_______________________________________________________________________________________


| |= See also
| |SEEALSO=


}}
}}

Revision as of 15:33, 7 April 2019

Hover & click on the images for description

Description

Description:
Stack code/function that should be run later, after some time/frames or/and custom condition.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
param call BIS_fnc_runLater;
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:
Nothing

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

Notes

Bottom Section