# AI Mode

<div align="left"><figure><img src="/files/82Sc0e77lnZ4yNkNrsZL" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/d0zhL8QljapfLg1zchMM" alt="" width="375"><figcaption></figcaption></figure></div>

<p align="center"><em><mark style="color:$info;">AI Mode Settings Inspector</mark></em></p>

To access this inspector follow project path: Black Knight Studio\2D Racing Game Template\Script\ScriptableObject

On AI Mode settings inspector window, you can edit almost settings in AI Mode gameplay include: change minimum and maximum race lap that players can select from AI mode popup, add more race map (prefab), add more car types (prefab) and change values movement of AI cars,...

<div align="center"><figure><img src="/files/qzHqUoCOKYYoDJAmoVgg" alt="" width="563"><figcaption><p>Display Debug Draw Ray Sensors Car And Draw Distance Line To Waypoints.</p></figcaption></figure></div>

You also can view debug draw ray from car sensors and distance line to waypoints on the scene window. This will help developer to check ray sensors car can detect obstacles or not, and check the destination of waypoints.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://black-knight.gitbook.io/2d-racing-multiplayer-game-template/customization/ai-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
