QUESTION Problem with code

Discussion in 'Apps' started by DragoN333, Dec 6, 2020.

  1. DragoN333

    DragoN333 New Member

    Joined:
    Dec 6, 2020
    Messages:
    1
    Likes Received:
    0
    Hey guys!
    I just learned from the orginal post of the beggining with ac phyton im trying to make an easy info app, shows all info like RPM,car driver name and more. But a thing that confuses my is the l_lapcount, what is that, im trying to make that in the window appear the car name, and i'm confused with the l-lapcount and how i can make that ac recognises the car and names it in the app, help pls.
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,118
    Likes Received:
    380
    Code:
    import ac, acsys
    
    def acUpdate(deltaT):
            currentCar = ac.getFocusedCar()
            currentLap = ac.getCarState(currentCar, acsys.CS.LapCount)
     
  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