Driver ahead and be...
 
Notifications
Clear all

[Solved] Driver ahead and behind (coding help)

3 Posts
2 Users
2 Reactions
1,546 Views
(@ehsanmomeni)
Eminent Member
Joined: 2 years ago
Posts: 9
Topic starter  

I have created a lap time overview of the driver ahead and behind, but the problem I have is that I have used the "DriverAhead_00" but I want to get the last lap time and best lap time of the driver that has the position ahead of me, and position behind me, so for instance if I'm P7, I would like to have the lap times of the drivers that are P6 and P8.

The way I have coded it I get the driver ahead/behind me on track, which sometimes can be lapped cars, but I don't want to compare lap times to lapped cars.

How do I recode this?

 

[PersistantTrackerPlugin.DriverAhead_00_Position]

[IRacingExtraProperties.iRacing_DriverAhead_00_GapChangeLastLap]

[PersistantTrackerPlugin.DriverAhead_00_LastLapTime]

[IRacingExtraProperties.iRacing_DriverAhead_00_BestLapTime]

 


   
Quote
(@romainrob)
Honorable Member
Joined: 5 years ago
Posts: 530
 

Hi, these properties are indeed for the next and previous cars on track.
you could try something using the built-in leaderboard components instead.
Or for iRacing, look for "IRacingExtraProperties.iRacing_NonRelativeDriver" in the property list.


   
ehsanmomeni reacted
ReplyQuote
(@ehsanmomeni)
Eminent Member
Joined: 2 years ago
Posts: 9
Topic starter  

@romainrob Thank you so much for your help. It worked exactly as I wanted.


   
Romainrob reacted
ReplyQuote
Share: