BIS fnc diagBulletCam: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Diagnostic(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Diagnostic |GROUP1= | |gr1= Diagnostic |GROUP1= | ||
| Add a "bullet camera" to shots fired by the specified unit. |DESCRIPTION= | | Add a "bullet camera" to shots fired by the specified unit. |DESCRIPTION= | ||
| unit call [[BIS_fnc_diagBulletCam]] |SYNTAX= | | unit call [[BIS_fnc_diagBulletCam]] |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Boolean]] - [[true]] when done |RETURNVALUE= | | [[Boolean]] - [[true]] when done |RETURNVALUE= | ||
|x1= <code>[[player]] [[call]] [[BIS_fnc_diagBulletCam]];</code> |EXAMPLE1= | |x1= <code>[[player]] [[call]] [[BIS_fnc_diagBulletCam]];</code> |EXAMPLE1= | ||
Line 27: | Line 23: | ||
[[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> |EXAMPLE2= | ||
| [[: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]] |SEEALSO= |
Revision as of 23:05, 16 January 2021
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