BIS fnc eventTimeline: Difference between revisions
Jump to navigation
Jump to search
m (infobox to template) |
Lou Montana (talk | contribs) m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ") |
||
Line 1: | Line 1: | ||
{{Function|= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= |
Revision as of 12:01, 26 June 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:
- 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