BIS_fnc_unitPlayFiring

From Bohemia Interactive Community
Revision as of 15: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_UnitPlayFiring.sqf

	Description:
	Plays back input weapon fire data on input unit.

	Parameters:
	Unit					- Unit to play weapon fire data on
	Data					- Weapon fire data to use
	OPT:IgnoreDisabled		- OPTIONAL: Whether to ignore if the Unit is dead and/or cannot move

	Example (used in a script):
	a)	_capturedFireData = [[2.135,"GAU8","<NULL-object>"]];
		[BIS_Vehicle, _capturedData, true] spawn BIS_fnc_UnitPlayFiring;
			Which would play back the captured data in the _capturedFireData array (containing only one frame in this example)
			onto a unit named BIS_Vehicle. Playback will play even if the unit is dead or disabled.
	
	Note that in a very large captured sequence, it is a better idea to preprocess the data prior to mission start, or
	a short freeze would occur as it reads the data. For example using the following in the mission's init:
	
		UnitData = compile preprocessFile "PlayBackUnit.sqf";

	..And then later start the sequence like this:
	
		// Start the sequence
		_result = [] call UnitData;
*/

(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