BIS fnc diagBulletCam: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Some wiki formatting)
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Diagnostic


|1.00|= Game version
|descr= Add a "bullet camera" to shots fired by the specified unit.
____________________________________________________________________________________________


| <pre>/*
|s1= unit call [[BIS_fnc_diagBulletCam]]


Description:
|p1= unit: [[Object]] - the shooting unit. Can be a vehicle.
Every time a given unit fires, bullet cam is created.


Parameter(s):
|r1= [[Boolean]] - [[true]] when done
0: OBJECT - unit on which firing is tracked


Returns:
|x1= <sqf>player call BIS_fnc_diagBulletCam;</sqf>
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x2= <sqf>
____________________________________________________________________________________________
// bullet camera will be removed after 10s
 
_unit = player;
| <!-- [] call [[BIS_fnc_diagBulletCam]]; --> |= Syntax
_unit call BIS_fnc_diagBulletCam;
 
_ehIndex = _unit getVariable "BIS_fnc_diagBulletCam_fired";
|p1= |= Parameter 1
sleep 10;
 
_unit removeEventHandler ["fired", _ehIndex];
| |= Return value
</sqf>
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[:Category:Event_Handlers|Event Handlers]] [[:Category:Command_Group:_Camera_Control|Camera Control Commands]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Diagnostic|{{uc:diagBulletCam}}]]
[[Category:Functions|{{uc:diagBulletCam}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:diagBulletCam}}]]

Latest revision as of 12:30, 13 July 2022

Hover & click on the images for description

Description

Description:
Add a "bullet camera" to shots fired by the specified unit.
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
unit call BIS_fnc_diagBulletCam
Parameters:
unit: Object - the shooting unit. Can be a vehicle.
Return Value:
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];

Additional Information

See also:
Event Handlers Camera Control Commands

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