Profile image

how to make AI CARS FOLLOW ME

1,040 MSLITecnik  3 months 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
    1,040 MSLITecnik

    @KSB24 i want my bus follow me and like inf distance like if im super far away it goes 95 mph

    Pinned 3 months ago
  • Profile image
    135k 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!

    Pinned 3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 your motorcade also can be all ai'd

    2 months ago
  • Profile image
    135k KSB24

    @MSLITecnik That's VERY amazing!

    2 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 i finally did it! i made a folllowing tugboat

    +1 2 months ago
  • Profile image
    135k KSB24

    @MSLITecnik there's too many words i have to use if i have to explain everything with text only.
    i uploaded Example Police car with the codes minimized as possible for easier understand. you can even disassamble all the codes inside it.
    and, i'm sorry if it makes you feeling like i let you do everything youself alone..

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @MSLITecnik yea it goes backwards

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 breh and also it goes backwards when i removed it

    3 months ago
  • Profile image
    135k KSB24

    @MSLITecnik yes, the * was my mistake..

    +1 3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 is the " * " a mistypo its showing me a SYNTAX error

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 i wanna learn more!

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 i wanna learn like how did you make police car

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 i made it roll over when its speeding hehehe

    +2 3 months ago
  • Profile image
    1,040 MSLITecnik

    @KSB24 "JESUS TAKE WHEEEEEEL"

    +2 3 months ago
  • Profile image
    1,040 MSLITecnik

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

    +2 3 months ago
  • Profile image
    1,040 MSLITecnik

    @MOGETA4BattleBots i need one

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @MOGETA4BattleBots do it work in convoys?

    3 months ago
  • Profile image

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

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @YarisSedan but how do i see it

    3 months ago
  • Profile image

    @KSB24

    3 months ago
  • Profile image
    1,040 MSLITecnik

    @Majakalona what the

    +1 3 months ago
  • Profile image
    29.9k YarisSedan

    @KSB24 might have the answer

    3 months ago
  • Profile image

    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.

    3 months ago