An AI vehicle should not attempt to change weapon direction when using the "fire" command. Running multiple "fire" commands on an AI vehicle will cause the vehicle to change the weapon direction after the first shot. Regardless of initial weapon direction, if a second "fire" command is issued, the AI vehicle will point the weapon forward and at maximum elevation. After firing the second time, the weapon will return to the initial weapon direction. This issue appears only when the player is greater than about 100 meters away from the AI vehicle. If the player is within 100 meters, the AI vehicle behaves as expected. The main gun will not move before the second shot. If the player starts far away and moves to within 100 meters after the AI vehicle has changed the weapon direction and before the second shot has been fired, the vehicle will return the main gun to the correct position. If enough time has passed after the first shot before issuing another "fire" command, the AI will not move the gun for the second shot.
Description
Description
Details
Details
- Legacy ID
- 3811090607
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- AI Aiming / Shooting
Steps To Reproduce
- create "B_MBT_01_arty_F" named test
- place player >100 meters away
- run the following script: test fire ["mortar_155mm_AMOS", "Single1"]; sleep 1; test fire ["mortar_155mm_AMOS", "Single1"];
- the vehicle will attempt to point the main gun directly overhead after the first round is fired
- if the player moves closer than about 100 meters before the second round fires, the vehicle's main gun will move to the correct weapon direction
- changing the above script to use "sleep 20" or similar will cause the AI to behave as expected
Additional Information
tested with tanks and artillery