Arma 3 Scripting

Function in Program Flow

BIS_fnc_runLater

Also available as Markdown and JSON, or read the original wiki page.

Description

Stack code/function that should be run later, after some time/frames or/and custom condition. Internally calls BIS_fnc_loop.

Syntax

[id, code, timer, timerType, condition] call BIS_fnc_runLater

Parameters:

Returns: 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;

See also

BIS_fnc_CPWaitUntil · waitUntil · BIS_fnc_loop