BIS fnc diagBulletCam: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
Lou Montana (talk | contribs) m (Text replacement - "bis_fnc_" to "BIS_fnc_") |
||
Line 19: | Line 19: | ||
_unit = [[player]]; | _unit = [[player]]; | ||
_unit [[call]] [[BIS_fnc_diagBulletCam]]; | _unit [[call]] [[BIS_fnc_diagBulletCam]]; | ||
_ehIndex = _unit [[getVariable]] " | _ehIndex = _unit [[getVariable]] "BIS_fnc_diagBulletCam_fired"; | ||
[[sleep]] 10; | [[sleep]] 10; | ||
_unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]", _ehIndex];</code> | _unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]", _ehIndex];</code> |
Revision as of 18:24, 20 June 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