Difference between revisions of "Enabling AI Controlled Vehicles"

Difference between revisions of "Enabling AI Controlled Vehicles"

From BeamNG
(Replaced content with "{{imbox | type = notice | style = margin: 20px auto; | textstyle = padding: 10px; border-radius: 5px; | text = This page has migrated to our new documentation '''h...")
(Tag: Replaced)
 
Line 1: Line 1:
{{languages}}
+
{{imbox
 
+
| type = notice
 
+
| style = margin: 20px auto;
__TOC__
+
| textstyle = padding: 10px; border-radius: 5px;
 
+
| text      =
== Adding the AI Control app ==
 
 
 
[[File:Aicontrol.jpg | thumb | left | Adding the 'AI Control' app to the UI]]
 
 
 
The first step to access the AI Controls is to add the '''AI Control''' app.
 
 
 
To do so, we will need to [[Editing_UI| '''Edit the UI''']]
 
 
 
 
 
 
 
{{clear}}
 
 
 
== Using the AI Control app ==
 
 
 
[[File:Aicontrolapp_g.jpg | position | thumb | left | AI Control app]]
 
 
 
Using the App is quite straight-forward.
 
 
 
Simply selected the '''AI Mode''' you want the current car to have.
 
  
AI will try to drive on roads, if the level has any AI Route set up.
+
This page has migrated to our new documentation
  
 +
'''https://documentation.beamng.com/tutorials/ai/'''
  
{{imbox
 
| textstyle = color: blue; font-weight: bold; font-style: italic;
 
| text      = If you use more than 1 vehicle, the AI mode will affect only the vehicle it has been activated on.
 
 
}}
 
}}
 
 
{{clear}}
 
 
== AI Modes ==
 
 
[[File:Aicontrolapp.jpg | position | thumb | left | AI Modes]]
 
 
* '''RANDOM mode''' : The AI will drive on random routes (if available)
 
 
 
* '''MANUAL mode''' : Currently not usable from the App. Allows the AI to drive to a determined position
 
 
 
* '''CHASE mode''' : The AI will try to catch the player. At least two vehicles are needed. Press {{key press|tab}} to switch between available vehicles. The AI Mode will only affect the vehicle it has been activated on.
 
 
 
* '''FLEE mode''' : The AI will try to escape the player. At least two vehicles are needed. Press {{key press|tab}} to switch between available vehicles. The AI Mode will only affect the vehicle it has been activated on.
 
 
 
* '''STOPPING''': The AI will stop, disabling any AI mode.
 
 
 
{{clear}}
 
 
== Debug Modes ==
 
 
These options are only meant for debugging purposes.
 
 
=== Engine Debug Mode ===
 
 
[[File:Aicontroldebug1.jpg | position | thumb | left | Navigraph Mode]]
 
 
 
* '''Navigraph''' : Will highlight all available routes the AI can drive on
 
 
{{clear}}
 
 
[[File:Aicontroldebug2.jpg | position | thumb | left | Visual LogModes]]
 
 
 
* '''Visual Log''' : Will highlight all the nodes available
 
 
 
 
{{clear}}
 
 
 
=== Vehicle Debug Drawing Modes ===
 
 
 
* '''Speeds Mode''' : Provides the planned speeds and route to be taken by the AI vehicle
 
 
* '''Trajectory Mode''' Indicates the path actually taken by the AI vehicle
 
 
* '''Target Mode''' Draws a red dot that indicates the current target of the AI
 
 
 
For more information, look [https://www.beamng.com/threads/ai-settings-explained.51733/#post-781006 here].
 

Latest revision as of 15:51, 13 April 2021