BIS fnc playVideo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Changed layout template from Command to Function)
Line 1: Line 1:
{{Command|=
{{Function|=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Plays in-game video.<br /><br />GUI layer for video is 25.<br /><br />Script terminates itself when video stops.
| Plays in-game video.
<br>
GUI layer for video is <tt>25</tt>.
<br>
Script terminates itself when video stops.
|=
|=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 25: Line 29:
| [[Nothing]] |= RETURNVALUE
| [[Nothing]] |= RETURNVALUE


|x1= <code>_video <nowiki>=</nowiki> ["\ca\video_pmc\CP00_intro.ogv"] [[spawn]] bis_fnc_playVideo;<br />[[waitUntil]] {[[scriptDone]] _video};</code>|= EXAMPLE1
|x1= <code>_video = ["\ca\video_pmc\CP00_intro.ogv"] [[spawn]] [[BIS_fnc_playVideo]];
[[waitUntil]] {[[scriptDone]] _video};</code>|= EXAMPLE1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 03:01, 29 May 2014

Hover & click on the images for description

Description

Description:
Plays in-game video.
GUI layer for video is 25.
Script terminates itself when video stops.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[path,size,color] spawn BIS_fnc_playVideo
Parameters:
path: String - full path to OGV file
size (Optional): Array in format [x, y, w, h]
color (Optional): Array in format Color
Return Value:
Nothing

Examples

Example 1:
_video = ["\ca\video_pmc\CP00_intro.ogv"] spawn BIS_fnc_playVideo; waitUntil {scriptDone _video};

Additional Information

See also:
Functions Library

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

Notes

Bottom Section