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

How often do you meet up (IRL) with your simracing friends?

  • Weekly

    Votes: 23 9.8%
  • Monthly

    Votes: 12 5.1%
  • Yearly

    Votes: 19 8.1%
  • Weekly at lan events

    Votes: 1 0.4%
  • Monthly at lan events

    Votes: 0 0.0%
  • Yearly at lan events

    Votes: 4 1.7%
  • Never have

    Votes: 181 77.4%
Back
Top