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 would be the ideal raceday for you to join our Club Races?

  • Monday

    Votes: 30 16.2%
  • Tuesday

    Votes: 24 13.0%
  • Wednesday

    Votes: 27 14.6%
  • Thursday

    Votes: 26 14.1%
  • Friday

    Votes: 67 36.2%
  • Saturday

    Votes: 103 55.7%
  • Sunday

    Votes: 74 40.0%
Back
Top