BIS fnc eventTimeline: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Systems(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
mNo edit summary |
||
Line 4: | Line 4: | ||
|1.78|Game version= | |1.78|Game version= | ||
|gr1 = Timeline |GROUP1= | |||
<!---|arg= local |Multiplayer Arguments=---> | <!---|arg= local |Multiplayer Arguments=---> |
Revision as of 14:46, 12 October 2020
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:
- Timeline
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