BIS fnc diagBulletCam: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3;</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 17: | Line 17: | ||
|x2= <code>{{cc|bullet camera will be removed after 10s}} | |x2= <code>{{cc|bullet camera will be removed after 10s}} | ||
_unit = | _unit = player; | ||
_unit [[call]] [[BIS_fnc_diagBulletCam]]; | _unit [[call]] [[BIS_fnc_diagBulletCam]]; | ||
_ehIndex = _unit [[getVariable]] "BIS_fnc_diagBulletCam_fired"; | _ehIndex = _unit [[getVariable]] "BIS_fnc_diagBulletCam_fired"; |
Revision as of 21:36, 12 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