Page MenuHomeFeedback Tracker

Commanding Menu "RscMenuEngage": AI don't turn their body when told to look in a direction
New, NormalPublic

Description

When you order an AI unit to look at a specific compass direction using the 3-8 shortcut, they just turn their bodies up until the requested compass direction is within their "head rotation range" and then they stop turning their bodies, so they end up looking in the wrong direction most of the time. They only occasionally turn their heads to the requested direction.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
AI Aiming / Shooting
Steps To Reproduce

Add an AI unit to the player's group in Eden. Then run the mission. Use this code to visualize the AI view direction:

AI = units player # 1;
_map = findDisplay 12 displayCtrl 51; 
_map ctrlAddEventHandler ["Draw", {
  params ["_map"];
  _map drawLine [getPosASL AI, getPosASL AI vectorAdd (getCameraViewDirection AI vectorMultiply 1e5), [1,0,0,1]];
}];

Steps to repro:

  1. Order AI to look East (use keys 3-8-3)
  2. Order AI to look North (3-8-1)
  3. Result:

Now try this:

  1. Order AI to look West (3-8-7)
  2. Order AI to look North (3-8-1)
  3. Result:

You can follow the above steps for other directions as well. The above repro was just for North.

Note that the AI still looks in the desired direction after some time, but very occasionally (use 4x time acceleration)

Event Timeline

Leopard20 edited Steps To Reproduce. (Show Details)