BIS fnc diagBulletCam: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}")
m (revert + fix)
Tag: Undo
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3


|1.00
|version1= 1.00


|gr1= Diagnostic
|gr1= Diagnostic


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


| unit call [[BIS_fnc_diagBulletCam]]
|s1= unit call [[BIS_fnc_diagBulletCam]]


|p1= unit: [[Object]] - the shooting unit. Can be a vehicle.
|p1= unit: [[Object]] - the shooting unit. Can be a vehicle.


| [[Boolean]] - [[true]] when done
|r1= [[Boolean]] - [[true]] when done


|x1= <code>[[player]] [[call]] [[BIS_fnc_diagBulletCam]];</code>
|x1= <code>[[player]] [[call]] [[BIS_fnc_diagBulletCam]];</code>


|x2= <code>{{cc| bullet camera will be removed after 10s}}_unit = [[player]];
|x2= <code>{{cc|bullet camera will be removed after 10s}}
_unit = [[player]];
_unit [[call]] [[BIS_fnc_diagBulletCam]];
_unit [[call]] [[BIS_fnc_diagBulletCam]];
_ehIndex = _unit [[getVariable]] "bis_fnc_diagBulletCam_fired";
_ehIndex = _unit [[getVariable]] "bis_fnc_diagBulletCam_fired";
Line 23: Line 24:
_unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]", _ehIndex];</code>
_unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]", _ehIndex];</code>


| [[:Category:Event_Handlers|Event Handlers]], [[:Category:Command_Group:_Camera_Control|Camera Control Commands]]
|seealso= [[:Category:Event_Handlers|Event Handlers]], [[:Category:Command_Group:_Camera_Control|Camera Control Commands]]
}}
}}
[[Category:Functions|{{uc:diagBulletCam}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:diagBulletCam}}]]

Revision as of 18:10, 29 January 2021

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 HandlersCamera 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