BIS fnc diagBulletCam: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1= Diagnostic |GROUP1=
|gr1= Diagnostic


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


| unit call [[BIS_fnc_diagBulletCam]] |SYNTAX=
| unit call [[BIS_fnc_diagBulletCam]]


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


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


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


|x2= <code>{{codecomment|// bullet camera will be removed after 10s}}
|x2= <code>{{codecomment|// bullet camera will be removed after 10s}}
Line 22: Line 22:
_ehIndex = _unit [[getVariable]] "bis_fnc_diagBulletCam_fired";
_ehIndex = _unit [[getVariable]] "bis_fnc_diagBulletCam_fired";
[[sleep]] 10;
[[sleep]] 10;
_unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]", _ehIndex];</code> |EXAMPLE2=
_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]]
}}
}}



Revision as of 23:04, 17 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


Bottom Section