2 question about SimHub scripts: speed and shakers

Hello. I have this script to trigger an action when I stay in pits for too long:

trigger=if([DataCorePlugin.GameRunning]=1 && [DataCorePlugin.GameData.NewData.IsInPitSince]>30,1,0)

I would like to change this and make the action trigger whenever your car isn't moving for a long time anywhere on the track.

I could use:

[DataCorePlugin.GameData.NewData.SpeedKmh]=0

... but how do I make the timer for the period the car is still?

Another different issue is that I'm using hotkeys to control the global gain of my shakers. However, is there any way to have in indication on screen (VR) of the current or selected global gain?
 

Latest News

What is the reason for your passion for sim racing?

  • Watching real motorsport

    Votes: 400 69.6%
  • Physics and mechanics

    Votes: 252 43.8%
  • Competition and adrenaline

    Votes: 269 46.8%
  • Practice for real racing

    Votes: 120 20.9%
  • Community and simracers

    Votes: 160 27.8%
Back
Top