BIS_fnc_eventTimeline

From Bohemia Interactive Community
Revision as of 09:47, 12 October 2020 by R3vo (talk | contribs) (Text replacement - "\[\[Category\:Function Group\: Systems(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
/*
	Author: ZoZo, modified by Riccardo Argiolas

	Description:
    	Universal system for playing sequential events defined by time. Timeline (ARRAY) consists from events (ARRAY).
	timeline = [event1, event2, ..., eventX];
	event1 = [ time,1 code1 ];

	Example: timeline1 = [ [1.0, {do something here} ], [1.5, {do something here} ], [3.2, {do something here} ] ];
 	1st code is executed at 1.0sec after the start of the function, 2nd code is executed at 1.5sec after the start of the function and 3rd code is executed at 3.2sec after the start of the function

	Parameters:
	Select 0 - 2D ARRAY : timeline in format [ [1.0, {code} ], [2.0, {code} ], [2.3, {code} ], [4.7, {code} ] ]
	Select 1 - NUMBER: index of the event to play
	Select 2 - STRING: music to be played which will provide the sync time for the timeline
	Select 3 - (OPTIONAL) - CODE: code to be executed if the timeline is interrupted (missionNamespace setVariable ["BIS_fnc_eventTimeline_playing", FALSE])
	Select 4 - (OPTIONAL) - CODE or ARRAY: code or array of codes to be executed once the timeline is finshed. The codes are CALLed one after the other.

	Returns:

	Examples:
*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_eventTimeline
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

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