Custom Vehicle Controller
  • Custom Vehicle Controller
  • Guides
    • Workflow
      • Quick Setup
      • Creating New Parts
      • Modifying Parts
      • Creating Vehicle Parts Presets
      • Customizable Sets and Runtime Parts Change
      • Engine Performance Customization
      • Exposing Current Car Stats
    • API
      • CustomVehicleController
      • VehicleEngineSoundManager
      • RaceManager
      • RacerProgress
      • RaceSpawner
      • CollisionHandler
    • Vehicle Controller Input Provider
      • Input System Example
      • Mobile Input
    • Tips, Warnings and Requiremens
      • Work With Editor
      • Vehicle Set Up
    • AI Setup
      • AI Racer Creation
      • AI Racer Setup
      • AI Chaser Setup
      • Race Creation
      • Race Configuration
      • Race Information
    • Vehicle Damage System
      • Vehicle Damage Controller
      • Collision Area Partitioner
      • Part Damage Handler
      • Vehicle Attachments Aligner
      • Collision Handler
    • Additional Settings
      • Custom Vehicle Controller
      • Car Visuals Essentials
    • Package Settings
      • Assets Save Location
      • Project-Wide Surface Settings
    • Extra
      • Adding Visual Effects
        • Individual Effect Set Up
      • Adding Sound Effects
        • Adding Engine Sound
        • Adding Extra Sound Effects
  • Converting To Other Render Pipelines
    • Convert To Built-in RenderPipeline
    • Convert To HDRP RenderPipeline
Powered by GitBook
On this page
  1. Guides
  2. AI Setup

Race Configuration

PreviousRace CreationNextRace Information

Last updated 1 year ago

You can configure the race in the "Race Manager"

Property
Description

Lap Count

The amount of laps that must be completed to finish the race.

Race End Normilized Time

If the lap count is 1, you can change where the race ends. Can be useful in sprints and drag races, because at the end the car won't have a direction to follow.

Podium places

The amount of vehicle that must finish before the race end countdown will start.

Start Countdown

The amount of time that must pass after spawning to start the race. During this time, the input is disabled on vehicles.

Race Start Condition

Race can be started in the "Start" method or from the external call. If the "Begin Countdown After Spawn" on SpawnManagetr is set to true, the race will be started automatically if the "After External Call" is selected. Or you can get a reference to this component and call "BeginCountdown" method.

WaitForOtherRacersTime

The amount of time that must pass after the podium places have been taken to end the race.