Command 0xc4: Change Vehicle State
Note that this API is currently only available in the SVN version
||Type of the value
Changes the state of a vehicle. Because it is possible to change different values of a vehicle, the number of parameter to supply and their types differ between commands. The following values can be changed, the parameter which must be given are also shown in the table.
Overview Changeable Vehicle Variables
|max speed (0x11)
||Sets the vehicle's maximum speed to the given value
||string, float, byte, double
||Lets the vehicle stop at the given edge, at the given position and lane. The vehicle will stop for the given duration.
|phase index (0x22)
||Sets the phase of the traffic light to the given. The given index must be valid for the current program of the traffic light, this means it must be between 0 and the number of phases known to the current program of the tls - 1.
|change lane (0x13)
||Forces a lane change to the lane with the given index; if successfull, the lane will be chosen for the given amount of time.
|slow down (0x14)
||Reduces the speed to the given for the given amount of time.
|change target (0x31)
||The vehicle's destination edge is set to the given. The route is rebuilt.