BIS fnc diagBulletCam: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) 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 | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1= Diagnostic | |gr1= Diagnostic | ||
| Add a "bullet camera" to shots fired by the specified unit. | | Add a "bullet camera" to shots fired by the specified unit. | ||
| unit call [[BIS_fnc_diagBulletCam]] | | 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 | | [[Boolean]] - [[true]] when done | ||
|x1= <code>[[player]] [[call]] [[BIS_fnc_diagBulletCam]];</code> | |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> | _unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]", _ehIndex];</code> | ||
| [[:Category:Event_Handlers|Event Handlers]], [[:Category:Command_Group:_Camera_Control|Camera Control Commands]] | | [[:Category:Event_Handlers|Event Handlers]], [[:Category:Command_Group:_Camera_Control|Camera Control Commands]] | ||
}} | }} | ||
Revision as of 23:04, 17 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