Have a gunner (manned a Mk static gun in this case) follow and shoot at the player. When player lies down, the gunner shoots erratically. AI gunner should shoot at the position of the player nevertheless. Even when the code is adapted to "_gunner doWatch (position player);", the AI gunner now shoots wrongly in a different way: it shoots too far in front of the target. {F27001}
Description
Details
- Legacy ID
- 810229138
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- AI Aiming / Shooting
Included zip file contains the mission and a SQF file. It's at night so you can see the tracers of the gunner shooting at your position. Just cross the trigger line to have the gunner shoot at you. You are invincible by the way (allowdamage is false).
EDIT: tested with no mods whatsoever.
SQF comes with:
_gunner doWatch (position _targetToFollow);
Try this one first and observe gunner shooting way in front of your position. Then remove the "position" command so it becomes:
_gunner doWatch _targetToFollow;
Now oddly the gunner shoots at your position. But lie down, and see the gunner aiming far left and right of you. If you stand up again, it will aim at you again. "doWatch" is not a visibility thing. According to notation it should only observe the position.