Unsolved How would I write custom AI?

Discussion in 'Mod Support' started by uluc, Mar 27, 2021.

  1. uluc

    uluc
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    5
    Hello,

    I am thinking of implementing self-driving neural network AI for Beam.NG as a hobby project (similar to GTA 5 implementations). I am not sure if it is possible to somehow control car with lua scripts (or any other programming language) without obtaining BeamNG.tech. If not, I am limited to controlling only player car with external script what emulates key presses, which would limit the implementation to player car only.

    What I need is an access to vehicle inputs (AI or player car) such as steering, throttle and brakes, gear up-down etc.

    Thanks in advance!
     
  2. a plane guy

    a plane guy
    Expand Collapse

    Joined:
    Mar 14, 2021
    Messages:
    4,143
    I
    Use script ai watch some tutorials on YouTube
     
  3. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    3,029
    that's not gonna work in this case lol.

    Theres some lua masters in this community, ill see if they can help you. @uluc
     
  4. The HellBox

    The HellBox
    Expand Collapse
    BeamNG Team

    Joined:
    Sep 12, 2020
    Messages:
    83
    Here's how we do this in KissMP
    https://github.com/TheHellBox/KISS-...lua/vehicle/extensions/kiss_mp/kiss_input.lua
    Look at apply() function
     
    • Like Like x 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice