BIS_fnc_runLater

From Bohemia Interactive Community
Revision as of 18:42, 3 April 2006 by BIS fnc exportFunctionsToWiki (talk) (Generated by BIS_fnc_exportFunctionsToWiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/*
	
	Description:
	Run some code later
	Delay can be in seconds, frames and/or custom condition
	Code and conditions are executed in non-schedule environment
	
	Parameters:
	_this select 0: Unique id
	_this select 1: Code/function that is executed later
	_this select 2: The timer value (can be in seconds or frames)
	_this select 3: The timer type, can be "seconds" or "frames"
	_this select 4: The custom condition, code is only executed if timer is validated and condition is met
	
	Returns:
	NOTHING
	
	Examples:
	["uniqueId", { hint str time; }, 5] call BIS_fnc_runLater; 						//Hints current game time in the next frame after 5 seconds have passed
	["uniqueId", { hint str time; }, 120, "frames"] call BIS_fnc_runLater; 					//Hints current game time in the next frame after 120 frames have passed
	["uniqueId", { hint str time; }, nil, nil, { !isNil { BIS_variable } }] call BIS_fnc_runLater; 		//Hints current game time in the next frame after BIS_variable is assigned
	["uniqueId", { hint str time; }, 5, "seconds", { !isNil { BIS_variable } }] call BIS_fnc_runLater; 	//Hints current game time in the next frame after 5 seconds have passed and BIS_variable is assigned
	["uniqueId", { hint str time; }] call BIS_fnc_runLater; 						//Hints current game time in the next frame
*/

//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

Notes

Bottom Section