Difference between revisions of "Photo Camera"

From Savage Game Design Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
The feature uses Arma 3 [https://community.bistudio.com/wiki/screenshot screenshot] command and the same limitations apply to it.
 
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:
+
The screenshots are saved to your current profile directory:<br/>
<code>Documents\Arma 3\Screenshots</code>
+
<code>Documents\Arma 3\Screenshots</code><br/>
 
<code>Documents\Arma 3 - Other Profiles\<profile>\Screenshots</code>
 
<code>Documents\Arma 3 - Other Profiles\<profile>\Screenshots</code>
  
Line 44: Line 44:
 
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

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";