BIS fnc unitPlayFiring: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma2oa |Game name=
| arma2oa


|1.00|Game version=
|1.00


|gr1 = Scenes |GROUP1=
|gr1 = Scenes


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


| [unit, data, stateIgnore] spawn [[BIS_fnc_UnitPlayFiring]] |Syntax=
| [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




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


|exec= spawn |Execution=
|exec= spawn |Execution=


|x1= <code>_capturedFireData = [[2.135,"GAU8","<NULL-object>"]];
|x1= <code>_capturedFireData = [[2.135,"GAU8","<NULL-object>"]];
[ BIS_Vehicle, _capturedData, [[true ]] ] [[spawn]] [[BIS_fnc_UnitPlayFiring]];</code>|Example 1=
[ BIS_Vehicle, _capturedData, [[true ]] ] [[spawn]] [[BIS_fnc_UnitPlayFiring]];</code>


| [[BIS_fnc_UnitCaptureFiring]], [[BIS_fnc_UnitCaptureSimple]], [[BIS_fnc_UnitPlaySimple]], [[BIS_fnc_UnitCapture]], [[BIS_fnc_UnitPlay]] |See also=
| [[BIS_fnc_UnitCaptureFiring]], [[BIS_fnc_UnitCaptureSimple]], [[BIS_fnc_UnitPlaySimple]], [[BIS_fnc_UnitCapture]], [[BIS_fnc_UnitPlay]]
}}
}}



Revision as of 23:20, 17 January 2021

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 - Script handle

Examples

Example 1:
_capturedFireData = [[2.135,"GAU8","<NULL-object>"]]; [ BIS_Vehicle, _capturedData, true ] spawn BIS_fnc_UnitPlayFiring;

Additional Information

See also:
BIS_fnc_UnitCaptureFiringBIS_fnc_UnitCaptureSimpleBIS_fnc_UnitPlaySimpleBIS_fnc_UnitCaptureBIS_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


Bottom Section