{"name":"BIS_fnc_unitPlayFiring","title":"BIS fnc unitPlayFiring","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_unitPlayFiring","revid":336355,"updated":"2022-12-29T08:44:18Z","groups":["Scenes"],"status":"ok","games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","exec":"spawn","description":"Plays back input weapon fire data on input unit.","syntaxes":[{"syntax":"[unit, data, stateIgnore] spawn BIS_fnc_unitPlayFiring","params":[{"name":"unit","type":"Object","description":"unit to play weapon fire data on","type_expr":"Object"},{"name":"data","type":"Array","description":"firing data to use BIS_fnc_unitCaptureFiring","type_expr":"Array"},{"name":"stateIgnore","type":"Boolean","optional":true,"default":"false","description":"whether to ignore if the Unit is dead and/or cannot move","type_expr":"Boolean","text":"stateIgnore: Boolean - (Optional, default false) whether to ignore if the Unit is dead and/or cannot move"}],"returns":{"type":"Script Handle","type_expr":"Script Handle"}}],"examples":[{"code":["private _capturedFireData = [[2.135, \"GAU8\", \"<NULL-object>\"]];\n[BIS_Vehicle, _capturedData, true] spawn BIS_fnc_unitPlayFiring;"]}],"see_also":["BIS_fnc_unitCaptureFiring","BIS_fnc_unitCaptureSimple","BIS_fnc_unitPlaySimple","BIS_fnc_unitCapture","BIS_fnc_unitPlay"]}