Arma 3 Scripting

Function in Diagnostic

BIS_fnc_diagBulletCam

Also available as Markdown and JSON, or read the original wiki page.

Description

Add a "bullet camera" to shots fired by the specified unit.

Syntax

unit call BIS_fnc_diagBulletCam

Parameters:

Returns: Boolean - true when done

Examples

Example 1

player call BIS_fnc_diagBulletCam;

Example 2

// bullet camera will be removed after 10s
_unit = player;
_unit call BIS_fnc_diagBulletCam;
_ehIndex = _unit getVariable "BIS_fnc_diagBulletCam_fired";
sleep 10;
_unit removeEventHandler ["fired", _ehIndex];