BIS fnc diagBulletCam: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|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= < | |x1= <sqf>player call BIS_fnc_diagBulletCam;</sqf> | ||
|x2= < | |x2= <sqf> | ||
_unit = | // bullet camera will be removed after 10s | ||
_unit | _unit = player; | ||
_ehIndex = _unit | _unit call BIS_fnc_diagBulletCam; | ||
_ehIndex = _unit getVariable "BIS_fnc_diagBulletCam_fired"; | |||
_unit | sleep 10; | ||
_unit removeEventHandler ["fired", _ehIndex]; | |||
</sqf> | |||
| [[:Category:Event_Handlers|Event Handlers]] | |seealso= [[:Category:Event_Handlers|Event Handlers]] [[:Category:Command_Group:_Camera_Control|Camera Control Commands]] | ||
}} | }} | ||
Latest revision as of 11:30, 13 July 2022
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:
- 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