Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Need Help with The AI Car from Unity Assets

Discussion in 'General Discussion' started by sweta04, Feb 14, 2018.

  1. sweta04

    sweta04

    Joined:
    Nov 2, 2017
    Posts:
    4
    Hi all,
    I am a novice here. I want my AI car- downloaded from the Unity>Vehicles Assets, to start moving from point A to pint B following certain waypoints,only after I press a key(say, spacebar) not just after I press the Play button. Any help with the script will be appreciated. Please Help!
     
    Last edited: Feb 14, 2018
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
  3. cl9-2

    cl9-2

    Joined:
    May 31, 2013
    Posts:
    417
    You
    In addition to what @Joe-Censored mentioned, you'll need to make a number of modifications to the CarAIControl.cs script to achieve waypoint following. The correct section for scripting questions go here. Please repost your question there, or request that a moderator move the thread there, and I can walk you through the needed steps.