Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
Sorry I'm a bit lost on your earlier (longer) question, I don't know what you're trying to ask.

Emmanuel Suter wrote:
If I understand, if I use this part of code, "var name" will return TeamName if it is a Team Session and Driver Name in other case ?
Yes.

To get driver name in a team session, you have to use entity.CurrentDriver.Name instead.


Emmanuel Suter wrote:
And if I return otherDrivers in a ticker when this is use :  var otherDrivers = entity.Drivers; does it show a driver list ?
entity.Drivers keeps a list of drivers that ATVO observed to get in the car. Unfortunately iRacing does not output a list of the drivers registered in a team, we can only know about a driver currently in the car. So if someone never got in the car yet, he will not make it into the Drivers list.

There is no dataset for team drivers (for this same reason) so you cannot use it in a ticker unfortunately. You could manually build a list of driver names and show that in a widget/label.