Difference between revisions of "Photo Camera"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
=== Saving photos to disk === | === Saving photos to disk === | ||
− | To enable saving of the camera photos to the disk place "Enable Photo Camera Picture Saving" (vn_module_photo_camera_enable_screenshots) module in the mission. The feature uses Arma 3 [https://community.bistudio.com/wiki/screenshot screenshot] command and same limitations apply to it. | + | To enable saving of the camera photos to the disk place "Enable Photo Camera Picture Saving" (vn_module_photo_camera_enable_screenshots) module in the mission. |
+ | The feature uses Arma 3 [https://community.bistudio.com/wiki/screenshot screenshot] command and the same limitations apply to it. | ||
+ | |||
+ | The screenshots are saved to your current profile directory:<br/> | ||
+ | <code>Documents\Arma 3\Screenshots</code><br/> | ||
+ | <code>Documents\Arma 3 - Other Profiles\<profile>\Screenshots</code> | ||
=== Scripting === | === Scripting === | ||
Line 9: | Line 14: | ||
==== Handling pictures being taken ==== | ==== Handling pictures being taken ==== | ||
− | Every time player "captures" a picture the <code>vn_photoCamera_pictureTaken</code> scripted event is | + | Every time player "captures" a picture the <code>vn_photoCamera_pictureTaken</code> scripted event is emitted locally. |
<pre> | <pre> | ||
Line 34: | Line 39: | ||
</pre> | </pre> | ||
− | To disable photo saving | + | To disable photo saving for weapon remove it from <code>vn_photoCameras</code> hashmap. |
<pre> | <pre> | ||
vn_photoCameras deleteAt "vn_camera_01"; | vn_photoCameras deleteAt "vn_camera_01"; | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category: Modules]] |
Latest revision as of 20:37, 13 June 2023
Contents
Photo Camera
Saving photos to disk
To enable saving of the camera photos to the disk place "Enable Photo Camera Picture Saving" (vn_module_photo_camera_enable_screenshots) module in the mission. The feature uses Arma 3 screenshot command and the same limitations apply to it.
The screenshots are saved to your current profile directory:
Documents\Arma 3\Screenshots
Documents\Arma 3 - Other Profiles\<profile>\Screenshots
Scripting
Handling pictures being taken
Every time player "captures" a picture the vn_photoCamera_pictureTaken
scripted event is emitted locally.
[true, "vn_photoCamera_pictureTaken", { params ["_cursorTarget"]; hint format ["You've taken a photo of %1", getText (configOf _cursorTarget >> "displayName")]; }] call BIS_fnc_addScriptedEventHandler;
Disabling feature
To disable the feature set the vn_photoCamera_allowed
variable to false
missionNamespace setVariable ["vn_photoCamera_allowed", false];
Camera feature for other weapons
To enable photo saving via other weapons add them as a key to vn_photoCameras
hashmap.
vn_photoCameras set ["Rangefinder", true];
To disable photo saving for weapon remove it from vn_photoCameras
hashmap.
vn_photoCameras deleteAt "vn_camera_01";