BIS fnc diagBulletCam: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Examples)
Line 30: Line 30:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>player spawn [[BIS_fnc_diagBulletCam]];</code> |=
 
|x2= Add and remove bullet cam using this method
<code>_unit = [[player]];
_unit [[spawn]] [[BIS_fnc_diagBulletCam]];
_EhIndex = _unit [[getVariable]] "bis_fnc_diagBulletCam_fired";
_unit [[removeEventHandler]] ["[[Arma_3:_Event_Handlers#Fired|fired]]",_EhIndex];</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:45, 11 April 2015


Hover & click on the images for description

Description

Description:
/*

	Description:
	Every time a given unit fires, bullet cam is created.

	Parameter(s):
		0: OBJECT - unit on which firing is tracked

	Returns:
	BOOL
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:
player spawn BIS_fnc_diagBulletCam;
Example 2:
Add and remove bullet cam using this method _unit = player; _unit spawn BIS_fnc_diagBulletCam; _EhIndex = _unit getVariable "bis_fnc_diagBulletCam_fired"; _unit removeEventHandler ["fired",_EhIndex];

Additional Information

See also:
See also needed

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

Notes

Bottom Section