doFire works with soldiers (AI or players) and/or vehicles but doesn't work with shooting target. AI aims target but refuse to shoot. I tried with doTarget and doFire but unsuccessfully.
Description
Details
- Legacy ID
- 1372069346
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- AI Issues
Event Timeline
Dofire seems to have no effect in this game anymore, has it's functionality been removed?
It does work! However not with all vehicles or soldiers and in addition, it doesn't work reliably. It highly depends on the target, the distance and as already mentioned on the unit itself.
Example script:
_shooter = s18;
_target = [Target_1,Target_2,Target_3,Target_4,Target_5];
while {(player distance _shooter > 5)} do
{
{
_shooter setCaptive true;
_shooter setUnitPos "MIDDLE";
_shooter doTarget _x;
_shooter doFire _x;
} foreach _target;
};
All in all I think, this command should either be overhauled and documented correctly, or removed entirely.
Maybe a new command or function, which combines doTarget and doFire?
with Kind Regards
R3vo
This script only worked for me with a Sniper unit.