Get vehicle states from within mainLevel.lua

Discussion in 'Content Creation' started by Barbent Servo GT, Jul 11, 2023.

  1. Barbent Servo GT

    Barbent Servo GT
    Expand Collapse

    Joined:
    Jun 4, 2023
    Messages:
    653
    Hi everyone,
    I'm trying to programm some specific environmental reaction e.g. if the player actuates the horn or shuts down the engine to switch on some garage lights or anything or recognition of horn codes to open gates. By now I know how to recognize the players speed via
    Code:
    local airspeed = vehObj:getVelocity():length()
    Is there any (similar) way to get further information about the current vehicle from within mainLevel.lua. Especially horn, light and ignition states?
     
  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