Page MenuHomeFeedback Tracker

BIS_fnc_UnitPlayFiring no longer works since S.O.G 1.2
Closed, ResolvedPublic

Description

Hello, I noticed that since the 1.2 update of the S.O.G DLC, a scenario that I created a few months ago no longer works properly.
To be precise, the helicopters I captured with BIS_fnc_UnitCapture no longer shoot rockets.
However, this problem seems to only occur on the UH-1 helicopters, as it still works on the AH-9 pawnee.

I have created a simple example mission and uploaded it (no mods and just the SOG DLC):

I also made a small video to demonstrate the problem.
In this video, the AH-9 fires missiles but the UH-1C does not:
https://www.youtube.com/watch?v=bwEhA5wmlgw

Here is the Code I used:

  • for capturing the Data:
rec = [vehicle player,200,20,true] spawn BIS_fnc_UnitCapture;
  • for the UH-1C flightpath (H1flightpath.sqf) :
_movementdata = [[0,[1331.95,3293.66,73.3128],[-0.989004,0.0451461,-0.140831],[-0.140656,0.00704925,0.990034],[-1.30963,0.0658325,-0.0288855]],.....];

_firingdata = [[2.616,"vn_rocket_ffar_275in_launcher_m229"],[3.107,"vn_rocket_ffar_275in_launcher_m229"],......];

[H1, _firingdata, true] spawn BIS_fnc_UnitPlayFiring;
_sequence = [H1, _movementdata] spawn BIS_fnc_UnitPlay;

waitUntil {scriptDone _sequence};
hint "Playback 1 finished";
  • for the AH-9 flightpath (H2flightpath.sqf) :
_movementdata = [[0,[1337.54,3255.75,66.2256],[-0.980305,0.155578,-0.121648],[-0.119848,0.0209321,0.992571],[-4.7839,0.813286,-0.0131848]],....];

_firingdata = [[4.826,"missiles_DAR"],[4.832,"missiles_DAR"],....];

[H2, _firingdata, true] spawn BIS_fnc_UnitPlayFiring;
_sequence = [H2, _movementdata] spawn BIS_fnc_UnitPlay;

waitUntil {scriptDone _sequence};
hint "Playback 2 finished";

I have already checked my game files but nothing was found.

Thank you in advance.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Launch the game without mods and only the SOG DLC
  2. Place a UH-1 helicopter and capture a flightpath with BIS_fnc_UnitCapture using rockets.
  3. Play the recording with BIS_fnc_UnitPlayFiring and BIS_fnc_UnitPlay.
Additional Information

Here is the original entry in the Bohemia Interactive Forum:
https://forums.bohemia.net/forums/topic/239394-bis_fnc_unitplayfiring-no-longer-works-since-sog-12/

The bug was also confirmed by pierremgi

Event Timeline

Joshua9797 edited Steps To Reproduce. (Show Details)
Joshua9797 updated the task description. (Show Details)Jul 18 2022, 4:44 PM

Sorry for the inconvinence, it's related to the Huey fleet update. BIS_fnc_UnitCapture does not save which turret fired the weapons, during the playback it always tells the vehicle gunner (gunner _vehicle) to fire the weapons. After the updates the vehicle copilot is considered the vehicle gunner (can be recognized by the icon in 3den).

Switching the pylons to the gunner will make it work.

Yes that works great. Thank you for the clarification.

Now I just have one last question about a probably niche problem.

How can I fire the side machine guns with BIS_fnc_UnitPlayFiring on the new UH-1E?
Unfortunately, these are not listed in the attributes and can only be fired by the pilot.

Even if this is not possible you have helped me a lot so thank you again.

Unfortunately, it is not possible, BI function will always use weapons assigned to gunner and this gun is not a pylon so it can't be reassigned.

That is unfortunate but thank you very much.

Bob_Murphy closed this task as Resolved.Jan 11 2023, 1:10 AM
Bob_Murphy claimed this task.