screenshot: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Added more detail for clarity, added another example, and added BIS_fnc_exportEditorPreview and Configuring Asset Previews to see also)
Line 6: Line 6:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Captures a screenshot and stores it to file filename.<br>The file is saved into the '''Arma 3 directory'''. Image format is PNG.
| Captures a screenshot and stores it to file filename.<br>The file is saved into \Documents\Arma 3\Screenshots\'. PNG is the only available format and the file must have .png extension.  
{{warning|This command is not final and might be changed in a near future.}}|=
{{warning|This command is not final and might be changed in a near future.}}|=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[screenshot]] "testFile.png";</code>|= EXAMPLE1  
|x1= <code>[[screenshot]] "testFile.png";</code>|= EXAMPLE1


||= SEEALSO  
|x2= The following code will result in the screenshot being placed in \Documents\Arma 3\Screenshots\any\where\you\want.png
<code>[[screenshot]] "any\where\you\want.png";</code>|= EXAMPLE2
 
| [[BIS_fnc_exportEditorPreview]], [[Eden_Editor:_Configuring_Asset_Previews|Configuring Asset Previews]] |= SEEALSO  
|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  
}}
}}

Revision as of 05:35, 5 June 2016

Hover & click on the images for description

Description

Description:
Captures a screenshot and stores it to file filename.
The file is saved into \Documents\Arma 3\Screenshots\'. PNG is the only available format and the file must have .png extension.
This command is not final and might be changed in a near future.
Groups:
Uncategorised

Syntax

Syntax:
screenshot filename
Parameters:
filename: String
Return Value:
Nothing

Examples

Example 1:
screenshot "testFile.png";
Example 2:
The following code will result in the screenshot being placed in \Documents\Arma 3\Screenshots\any\where\you\want.png screenshot "any\where\you\want.png";

Additional Information

See also:
BIS_fnc_exportEditorPreviewConfiguring Asset Previews

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

Bottom Section

Notes

Bottom Section