The ScriptAI Editor offers two main ScriptAI modes: Time-based ScriptAI (T-Based), and Velocity-based ScriptAI (V-Based).
Time-Based ScriptAI:
Time-based ScriptAI comprises an ordered list of time-stamped positions, each of which are called ‘Waypoints’. Each waypoint is like a contract; which states that at the given time on the waypoint, the waypoint position is where the vehicle which is driving the trajectory should be. Depending upon other ScriptAI behaviour, this contract can be met very strictly, or can be lax if more physicality is requested.
With time-based ScriptAI, the Trajectory Edit Windows contains the checkbox ‘AI Assistant’ which allows the user to specify further the behaviour of the ScriptAI algorithm. If checked, the vehicle will be far more likely to satisfy the contract of the trajectory and errors will be reduced down to the centimeter scale, but this is at the cost of losing some physical-realism in the vehicle (for example, vehicles could be accelerated faster than they are physically capable of achieving on their own).
Velocity-Based ScriptAI:
Velocity-based ScriptAI also comprises an ordered list of waypoints, but do not have any time-stamps. Instead, they are velocity-stamped. If a waypoint has a velocity of, eg, 30kph, this is stating that 30kph is the maximum speed at which the vehicle can travel to this waypoint (from the previous waypoint). This is a much more relaxed mode, and is completely time-independent. Because of this, the vehicle behavior is altered such that if an obstruction appears in front of the vehicle, the vehicle can stop and wait.