1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

adjust countdown delay at start of a scenario

Discussion in 'Programming' started by MuzzleVelocity, Apr 8, 2016.

  1. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    there is a countdown from 3 to 0 at the start of each scenario. anyone know where this setting us? I can't find it in the lua for the individual scenarios, so im guessing its a global setting somewhere, unless its hardcoded.
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    BeamNG.Support
    Staff Member

    Joined:
    Aug 5, 2012
    Messages:
    11,808
    Should be the one in ui\modules\apps\RaceCountdownui\modules\apps\RaceCountdown
     
  3. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    THanks, that got me looking in the right direction, but wasn't exactly what i needed.

    But i did find line #185 in \lua\ge\extensions\race.lua:

    "guihooks.trigger('ScenarioFlashMessage', {{3,1, true},{2,1, true},{1,1, true},{"go!", 1, 'extensions.hook("onScenarioRaceCountingDone")', true}})"

    I changed the ,1,s to zeroes and no more countdown!
     
  4. hw06531

    hw06531
    Expand Collapse

    Joined:
    Jul 6, 2017
    Messages:
    8
    Can I adjust not only countdown but also scenario intro page. Is there lua code for intro page?
     
  5. Nadeox1

    Nadeox1
    Expand Collapse
    BeamNG.Support
    Staff Member

    Joined:
    Aug 5, 2012
    Messages:
    11,808
    The intro page depends from the scenario itself.
    What do you want to do?
     
  6. nascaremily

    nascaremily
    Expand Collapse

    Joined:
    Dec 3, 2015
    Messages:
    24
    How to use the countdown app on any track on freeroam I want use to start a race please help me?
     
  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