Would it be possible to have more scripting commands for vehicle handling? Such as changing the acceleration, steering, etc.? Possibly for all vehicle types (car, tank, heli, etc.) But at the very least only land vehicles and boats.
Currently there are only two commands for this purpose which are quite limited:
- setDriveOnPath: only applicable to land vehicles. It would be very useful for boats too (vanilla path generation in water is quite slow, so manual path generation can come in handy)
- sendSimpleCommand: very limited; almost impossible to handle the vehicle due to high response time and limited turning angles.
I'm sure there are many people who are interested in fixing the aweful AI driving. Another use case is better unit capture feature.
So a new set of commands can be helpful.
E.g.
veh setVehicleControls [steering, acceleration, handbrake]
veh setVehicleControls [-1, 1, false] //causes vehicle to turn fully left while moving forward at full acceleration, and no handbrake
the controls stay that way until someone (AI or player) change it themselves (similar to cruise control command). But in the case of AI, they shouldn't be able to modify this when you do unit disableAI "MOVE"