Profile image

how to make AI CARS FOLLOW ME

231 MSLITecnik  21 hours ago

how to make AI CARS FOLLOW ME in simpleplanes like why my ai bus always go backwards and just tip over the bus??

  • Log in to leave a comment
  • Profile image

    @KSB24 i made it roll over when its speeding hehehe

    +1 15 hours ago
  • Profile image

    @KSB24 "JESUS TAKE WHEEEEEEL"

    +1 15 hours ago
  • Profile image

    @KSB24 that was just simple than rather figuring it out with 100 messages in gpt

    +1 15 hours ago
  • Profile image
    117k KSB24

    First, i have to explain the differance btween "Simpleplane's Basic Ai" and our custom Ai code made by our own, working for what we intended.
    SP's Basic Ai is literally the built-in Ai exist on the game itself. it is somehow good enough at piloting airplanes, but it doesn't when it comes to ground vehicles, espacially if we have our specific desire to them to work on our intend!
    and because of this, we (and our ancestors of this site..!!)decided to design our own algorithm to work as what we intneded. now, it's time to make it yours..

    Step 1 - Let the funkytree codes to take the wheel (literally).
    Pitch, Roll, Yaw, Throttle, Brake, Trim, VTOL.. These inputs are only for us (human users) and Sp basic built-in Ai.
    to let our custom Ai to take the wheel, you have to change the inputs of each parts (like enigne or wheel's steer) into your own custom variable's name (you can make one at variable setter), so that the funkytree codes literally "take the wheel" of your vehicle. for example, for enigne's input, you have to change its input into Acc (i said this is just "example", you can name it your own!!!), Steer for inputs of wheels.
    Step 2 - design the code
    actually.. i spent a lot of time for research to find, also did founded new technique(s) on our Ai drive algorithm. but it would be too hard to explain everything with my incomplete english! so i'll just explain the most minimum, and the most definite way just make them to "follow" you.
    as i explained in step 1, if you changed the vehicle's control inputs into your own custom variables, copy and paste this code into Acc (example name) variable : (TargetDistance-10)/10*
    now our Ai is able to accelerate till its target's distance.
    and now, copy and paste this code into Steer (example name) variable :
    sin(TargetHeading-Heading)
    now our Ai is able to steer to change its direction as where the target is at.


    that's it, but since it was are very basic things to do, you may want to learn something more advanced. you can ask me at then!

    15 hours ago
  • Profile image

    @MOGETA4BattleBots i need one

    17 hours ago
  • Profile image

    @MOGETA4BattleBots do it work in convoys?

    17 hours ago
  • Profile image

    Use a gyroscope mod i can give u One if u want

    17 hours ago
  • Profile image

    @YarisSedan but how do i see it

    18 hours ago
  • Profile image

    @KSB24

    18 hours ago
  • Profile image

    @Majakalona what the

    19 hours ago
  • Profile image
    28.6k YarisSedan

    @KSB24 might have the answer

    20 hours ago
  • Profile image
    52.3k Majakalona

    You need bait.
    put the bait on a rope
    put the rope on a stick
    attach the stick to your car
    watch as the ai tries to get the bait.

    20 hours ago