BIS_fnc_unitCaptureFiring

From Bohemia Interactive Community
Revision as of 14:58, 25 July 2014 by Str (talk | contribs) (1 revision)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/*
	File: fn_UnitCaptureFiring.sqf

	Description:
	Records weapon fire data of input unit over a specified period of time.
	Pressing the ESC key, the duration ending, or the unit dying ends the
	recording.

	Parameters:
	Unit			- Unit to capture weapon fire data from
	Duration		- Duration to capture for
	OPT:StartTime	- OPTIONAL: Starting time offset for the frame time

	Copies to clipboard:
	Array in format [FrameTime, WeaponType, Target(If AI-controlled)] for each frame
	
	Input Example:
	a) [BIS_Vehicle, 50, 10] spawn BIS_fnc_UnitCaptureFiring;
			Which would capture data from a unit named BIS_Vehicle, and would capture for 50 seconds.
			Frame time offset would be 10 seconds.
	
	Output Example:
	a) [[2.135,"GAU8","<NULL-object>"],[2.157,"GAU8","<NULL-object>"]]
			The above output has 2 frames.

	b) [[2.135,"GAU8","<NULL-object>"]]
			The above output has 1 frame.
*/

(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:

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