BIS fnc crows: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Spawns flock of crows circling the area.
| Plays in-game video.<br /><br />GUI layer for video is 25.<br /><br />Script terminates itself when video stops.
|=
|=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [position,''areaSize'',''number''] call '''BIS_fnc_crows'''  |=
| [path,''size'',''color''] call '''BIS_fnc_playVideo'''  |=


|p1= position: [[Array]] (in format [[position]]) or [[Object]] (object position) or [[String]] (marker position) |= PARAMETER1  
|p1= path: [[String]] - full path to OGV file |= PARAMETER1  


|p2= areaSize ''(Optional)'': [[Number]] - area radius |= PARAMETER2  
|p2= size ''(Optional)'': [[Array]] in format [x, y, w, h] |= PARAMETER2  


|p3= number ''(Optional)'': [[Number]] of crows |= PARAMETER3
|p3= color ''(Optional)'': [[Array]] in format [[Color]] |= PARAMETER3


| [[Array]] - List of spawned crows<br /><br /> |= RETURNVALUE
| [[Nothing]] |= RETURNVALUE


|x1= <code>bis_crows <nowiki>=</nowiki> [BIS_scientist,20,8,20] [[call]] bis_fnc_crows;</code>|= EXAMPLE1
|x1= <code>_video <nowiki>=</nowiki> ["\ca\video_pmc\CP00_intro.ogv"] [[spawn]] bis_fnc_playVideo;<br />[[waitUntil]] {[[scriptDone]] _video};</code>|= EXAMPLE1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 43: Line 43:
<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>


[[Category:ArmA 2: Functions|CROWS}}]]
[[Category:ArmA 2: Functions|PLAYVIDEO}}]]

Revision as of 12:09, 29 November 2010

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.
Groups:
Uncategorised

Syntax

Syntax:
[path,size,color] call 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