Arma 3 Scripting

BIS_fnc_eventTimeline

  • Local effect
  • Runs with spawn
  • Arma 3 v1.78

Function · also in Systems · Markdown · JSON · original wiki page

Description

Universal system for playing sequential events defined by time.

Note

codeInterrupt and codeEnd are called while the code in the timeline is spawned.

Syntax

[timeline, index, music, codeInterrupt, codeEnd] call BIS_fnc_eventTimeline

Parameters:

Returns: Nothing

Examples

Example 1

private _timeline =
[
    [0.0, { hint "Start of the Timeline" }],
    [1.0, { hint "Event 1" }],
    [3.0, { hint "End of the timeline" }]
];

[_timeline, 0, "", { hint "Interrupted" }, { hint "Timeline done" }] spawn BIS_fnc_eventTimeline;

See also

BIS_fnc_animatedBriefing