BIS fnc unitPlayFiring: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page BIS fnc UnitPlayFiring to BIS fnc unitPlayFiring: Text replacement - "BIS fnc Unit" to "BIS fnc unit")
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


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


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


| [unit, data, stateIgnore] spawn [[BIS_fnc_UnitPlayFiring]]
|descr= Plays back input weapon fire data on input unit.


|p1= unit: [[Object]] - Unit to play weapon fire data on
|s1= [unit, data, stateIgnore] spawn [[BIS_fnc_unitPlayFiring]]


|p2= data: [[Array]] - Firing data to use [[BIS_fnc_UnitCaptureFiring]]
|p1= unit: [[Object]] - unit to play weapon fire data on


|p3= stateIgnore: [[Boolean]] - (Optional, default [[false]]) Whether to ignore if the Unit is dead and/or cannot move
|p2= data: [[Array]] - firing data to use [[BIS_fnc_unitCaptureFiring]]


| [[Script]] - Script handle
|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= <code>_capturedFireData = [[2.135,"GAU8","<NULL-object>"]];
|x1= <sqf>
[ BIS_Vehicle, _capturedData, [[true ]] ] [[spawn]] [[BIS_fnc_UnitPlayFiring]];</code>
private _capturedFireData = [[2.135, "GAU8", "<NULL-object>"]];
[BIS_Vehicle, _capturedData, true] spawn BIS_fnc_unitPlayFiring;
</sqf>


| [[BIS_fnc_UnitCaptureFiring]], [[BIS_fnc_UnitCaptureSimple]], [[BIS_fnc_UnitPlaySimple]], [[BIS_fnc_UnitCapture]], [[BIS_fnc_UnitPlay]]
|seealso= [[BIS_fnc_unitCaptureFiring]] [[BIS_fnc_unitCaptureSimple]] [[BIS_fnc_unitPlaySimple]] [[BIS_fnc_unitCapture]] [[BIS_fnc_unitPlay]]
}}
}}
[[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 09: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