BIS fnc unitPlayFiring: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Lou Montana moved page BIS fnc UnitPlayFiring to BIS fnc unitPlayFiring: Text replacement - "BIS fnc Unit" to "BIS fnc unit") |
Lou Montana (talk | contribs) m (Fix Script link) |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2oa | |game1= arma2oa | ||
|version1= 1.50 | |||
|1.00 | |game2= tkoh | ||
|version2= 1.00 | |||
| | |game3= arma3 | ||
|version3= 0.50 | |||
| | |gr1= Scenes | ||
| | |descr= Plays back input weapon fire data on input unit. | ||
| | |s1= [unit, data, stateIgnore] spawn [[BIS_fnc_unitPlayFiring]] | ||
| | |p1= unit: [[Object]] - unit to play weapon fire data on | ||
| | |p2= data: [[Array]] - firing data to use [[BIS_fnc_unitCaptureFiring]] | ||
| [[ | |p3= stateIgnore: [[Boolean]] - (Optional, default [[false]]) whether to ignore if the Unit is dead and/or cannot move | ||
|r1= [[Script Handle]] | |||
|exec= spawn | |exec= spawn | ||
|x1= < | |x1= <sqf> | ||
[ BIS_Vehicle, _capturedData, | private _capturedFireData = [[2.135, "GAU8", "<NULL-object>"]]; | ||
[BIS_Vehicle, _capturedData, true] spawn BIS_fnc_unitPlayFiring; | |||
</sqf> | |||
| [[ | |seealso= [[BIS_fnc_unitCaptureFiring]] [[BIS_fnc_unitCaptureSimple]] [[BIS_fnc_unitPlaySimple]] [[BIS_fnc_unitCapture]] [[BIS_fnc_unitPlay]] | ||
}} | }} | ||
Latest revision as of 09:44, 29 December 2022
Description
Syntax
- Syntax:
- [unit, data, stateIgnore] spawn BIS_fnc_unitPlayFiring
- Parameters:
- unit: Object - unit to play weapon fire data on
- data: Array - firing data to use BIS_fnc_unitCaptureFiring
- stateIgnore: Boolean - (Optional, default false) whether to ignore if the Unit is dead and/or cannot move
- Return Value:
- Script Handle
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_unitCaptureFiring BIS_fnc_unitCaptureSimple BIS_fnc_unitPlaySimple BIS_fnc_unitCapture BIS_fnc_unitPlay
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