View Full Version : AI Scripting - Artillery
Is there any way to adjust the threshold of what the AI considers important enough to shoot artillery at? I've found that the AI typically fires at yellow-spotted artillery, but not yellow-spotted anything else. Similarly, it won't shoot at many red-spotted units, apparently because the target value isn't high enough.
Is there any way to get it to shoot only at stationary targets?
Is there any way to keep certain artillery units from firing, short of keeping them moving? Something like "Hold Fire", which doesn't seem to affect indirect fire.
Thanks,
--- Kevin
Deltapooh
17 Dec 03, 17:33
Is there any way to get it to shoot only at stationary targets?
This should already be the case. Usually if I stop, and the enemy can see me, the AI develop fire missions.
Is there any way to keep certain artillery units from firing, short of keeping them moving? Something like "Hold Fire", which doesn't seem to affect indirect fire.
There is the "do not emplace" order. Set the artillery unit to "do not emplace." Then in the battle plan, create a trigger, like an event box. Then use the "Cancel Toggle Order/Do Not Emplace" hierarchy order.
I'm not certain exactly how to go about expanding AI priority, particularly for unidentified vehicles. If I understood CPT. Proctor correctly a while back, the AI uses a number of issues to determine fire missions. These include the formation being being used.
This should already be the case. Usually if I stop, and the enemy can see me, the AI develop fire missions.
What I meant is, how can I prevent the AI from shooting at moving targets, since it nearly always misses.
There is the "do not emplace" order. Set the artillery unit to "do not emplace."
I thought about that, but it has two problems:
1. It doesn't affect anything if the arty is already emplaced, until it moves.
2. When you turn it off, the arty must emplace before it is ready to fire.
--- Kevin
Pat Proctor
17 Dec 03, 20:20
The AI does not fire at moving targets. What you may be observing is a unit stopping momentarily, as part of a formation turn, and rounds landing in his last position. I am afraid there is not much that can be done about that.
Do not emplace is the method to use to prevent firing. It is, in fact, how the smoke is delayed in Iraq4 until you get close to the bridge. The artillery is in "Do Not Emplace". When you enter an event box, the unit is given "Cancel: Do Not Emplace", and firing of the planned target commences.
If a unit is emplaced and is given "Do Not Emplace", it will displace.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.