BIS fnc unitPlayFiring: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Fix Script link)
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma2oa |Game name=
|game1= arma2oa
|version1= 1.50


|1.00|Game version=
|game2= tkoh
|version2= 1.00


|gr1 = Scenes |GROUP1=
|game3= arma3
|version3= 0.50


| Plays back input weapon fire data on input unit. |Description=
|gr1= Scenes


| [unit, data, stateIgnore] spawn [[BIS_fnc_UnitPlayFiring]] |Syntax=
|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 |Parameter 1=
|p1= unit: [[Object]] - unit to play weapon fire data on


|p2= data: [[Array]] - Firing data to use [[BIS_fnc_UnitCaptureFiring]]|Parameter 2=
|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 |Parameter 3=
|p3= stateIgnore: [[Boolean]] - (Optional, default [[false]]) whether to ignore if the Unit is dead and/or cannot move


|r1= [[Script Handle]]


| [[Script]] - Script handle |Return value=
|exec= spawn


|exec= spawn |Execution=
|x1= <sqf>
private _capturedFireData = [[2.135, "GAU8", "<NULL-object>"]];
[BIS_Vehicle, _capturedData, true] spawn BIS_fnc_unitPlayFiring;
</sqf>


|x1= <code>_capturedFireData = [[2.135,"GAU8","<NULL-object>"]];
|seealso= [[BIS_fnc_unitCaptureFiring]] [[BIS_fnc_unitCaptureSimple]] [[BIS_fnc_unitPlaySimple]] [[BIS_fnc_unitCapture]] [[BIS_fnc_unitPlay]]
[ BIS_Vehicle, _capturedData, [[true ]] ] [[spawn]] [[BIS_fnc_UnitPlayFiring]];</code>|Example 1=
 
| [[BIS_fnc_UnitCaptureFiring]], [[BIS_fnc_UnitCaptureSimple]], [[BIS_fnc_UnitPlaySimple]], [[BIS_fnc_UnitCapture]], [[BIS_fnc_UnitPlay]] |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:UnitPlayFiring}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:UnitPlayFiring}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:UnitPlayFiring}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:UnitPlayFiring}}]]

Latest revision as of 10:44, 29 December 2022

Hover & click on the images for description

Description

Description:
Plays back input weapon fire data on input unit.
Execution:
spawn
Groups:
Scenes

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:
private _capturedFireData = [[2.135, "GAU8", "<NULL-object>"]]; [BIS_Vehicle, _capturedData, true] spawn BIS_fnc_unitPlayFiring;

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