Page MenuHomeFeedback Tracker

[Feature Request] New scripting commands for vehicle handling (steering/gas/break)
New, NormalPublic

Description

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:

  1. 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)
  2. 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"

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Feature Request

Event Timeline

Leopard20 updated the task description. (Show Details)
Leopard20 updated the task description. (Show Details)Jul 5 2022, 6:29 PM
h- added a subscriber: h-.Jul 6 2022, 9:35 AM
dedmen added a subscriber: dedmen.EditedJul 6 2022, 9:54 AM
  1. setDriveOnPath uses a new AI system that was introduced for cars and tanks. Boats don't use that new system. Won't do.
  2. Not sure what improvements you want there
Leopard20 added a comment.EditedJul 6 2022, 10:48 AM

I mean neither 1 nor 2 are useful for vehicle handling. So I request a new command that allows manual control.
E.g.

veh setVehicleControls [steering, acceleration, handbrake]
veh setVehicleControls [-1, 1, false] //causes vehicle to turn fully left while moving forward at full speed, and no handbrake

Handbrake is not necessary but would be nice...

Leopard20 updated the task description. (Show Details)Jul 6 2022, 10:53 AM
Leopard20 updated the task description. (Show Details)Jul 6 2022, 11:30 AM
Leopard20 updated the task description. (Show Details)
Leopard20 updated the task description. (Show Details)Jul 6 2022, 11:34 AM
Leopard20 updated the task description. (Show Details)Jul 14 2022, 3:15 PM
Leopard20 updated the task description. (Show Details)Sep 24 2022, 2:16 AM
Leopard20 renamed this task from [Feature Request] New scripting commands for vehicle handling? to [Feature Request] New scripting commands for vehicle handling (steering/gas/break).