BIS fnc animatedBriefing: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (added see also and group) |
||
Line 4: | Line 4: | ||
|version1= 1.78 | |version1= 1.78 | ||
|gr1= Systems |GROUP1= | |||
|gr2= Briefing |GROUP2= | |||
<!--|serverExec= server--> | <!--|serverExec= server--> | ||
Line 9: | Line 13: | ||
<!--|arg= local--> | <!--|arg= local--> | ||
|eff= local | |||
|descr= Plays the Animated Briefings. Basically, it is a wrap function for the eventTimeline function. | |descr= Plays the Animated Briefings. Basically, it is a wrap function for the eventTimeline function. | ||
Line 52: | Line 56: | ||
|exec= spawn | |exec= spawn | ||
|seealso= | |seealso= [[Arma 3 Animated Briefing]] [[BIS_fnc_eventTimeline]] | ||
}} | }} |
Revision as of 11:41, 21 October 2020
Description
- Description:
- Plays the Animated Briefings. Basically, it is a wrap function for the eventTimeline function.
- Execution:
- spawn
- Groups:
- SystemsBriefing
Syntax
- Syntax:
- [timeline, indexEvent, markersHide, markersShow, endPosition] call BIS_fnc_animatedBriefing
- Parameters:
- timeline: Array - Array in format:
- indexEvent: Number - Index of the event to play
- markersHide: Array - (Optional, default []) Array of markers which should be hidden when briefing starts
- markersShow: Array - (Optional, default []) Array of markers which should be shown when the briefing is done
- endPosition: String - (Optional, default "") Marker to focus when the briefing is done
- codeEnd: Code - (Optional, default {}) Code executed when briefing is done
- Return Value:
- Nothing
Examples
- Example 1:
// timeline of events _timeline = [ [0.0, { hint "Start of the Timeline" } ], [1.0, { hint "Event 1" } ], [3.0, { hint "End of the timeline" } ] ]; // get markers to be shown at end by using the layer's name private _showMarkers = (getMissionLayerEntities "showAtEnd") select 1; // start the Animated Briefing at index 0 // hide all markers and show the markers from the "showAtEnd" layer after the briefing is done // zoom on marker_rect_1 at the end of the briefing [_timeline, 0, nil, allMapMarkers, _showMarkers, "marker_rect_1"] spawn BIS_fnc_animatedBriefing; // Wait until timeline is over waitUntil { !(missionNamespace getVariable "BIS_fnc_eventTimeline_playing"); };
Additional Information
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