R3vo/Sandbox2 – User
mNo edit summary Tag: Reverted |
m (→Event: code formattint) Tag: Reverted |
||
Line 26: | Line 26: | ||
Every time a photograph is taken, the [[Arma_3:_Scripted_Event_Handlers|scripted event]] {{hl|SPEX_System_Infantry_Camera_Photograph_TakenEvent}} is triggered. Scenario creators or modders can subscribe to that event with | Every time a photograph is taken, the [[Arma_3:_Scripted_Event_Handlers|scripted event]] {{hl|SPEX_System_Infantry_Camera_Photograph_TakenEvent}} is triggered. Scenario creators or modders can subscribe to that event with | ||
<sqf | <sqf>[ | ||
missionNamespace, | |||
"SPEX_System_Infantry_Camera_Photograph_TakenEvent", | |||
_code | |||
] call BIS_fnc_addScriptedEventHandler;</sqf> | |||
The following arguments are passed to the code. | The following arguments are passed to the code. |
Revision as of 20:08, 21 July 2025
Spearhead Extended - Photography Feature
The Commonwealth update added a new feature that allows players to take photographs.
Usage
1. Add the Model PH-324 Camera (SPEX_K35_PH324) through the Arma 3 Arsenal.
2. Add at least one 35mm 36Rnd Super-XX Film Roll (SPEX_36rnd_Super_XX_Film) through the Arma 3 Arsenal.
3. In game, press B to bring up the camera.
4. Look through the seeker by pressing and press
to take a photograph.
Enable Screenshot Creation
By default, the camera will not create an actual screenshot. To enable this, go to
Pause Menu >> Addon Options >> Spearhead 1944 >> Camera creates a screenshot
and tick the box. Now, each time a photograph is taken with the camera, a screenshot is saved in <ProfileFolder>
Event
Every time a photograph is taken, the scripted event SPEX_System_Infantry_Camera_Photograph_TakenEvent is triggered. Scenario creators or modders can subscribe to that event with
The following arguments are passed to the code.
params ["_player", "_photoGraphedObjects"]
- _player: The unit who took a photograph
- _photoGraphedObjects: All objects in the view of the player when the photograph was taken