Using a script to display a driverswap.

Posts: 61
Hi all,

Farely new to this program. And since I'm sort of mimicking the WEC theme (24h lemans to be specific) I wonder if its possible to show a specific driver swap only (only show a driverswap notification when you follow a specific team).

I can't seem to work out a way in the editor itself, so I'm wondering if a script could do it?
Posts: 785
It would require some scripting for sure. Probably an "Auto-run" script that runs every update (limit it to run every few seconds in the script itself to avoid performance issues) and checks for a driver swap.

Alternatively, I think there is probably some way you can hook into the theme events system so you can just listen for the driver swap event. Not sure on the syntax...
Posts: 287
I try to use the Event Trigger DriverSwap, but it stay on Never. Does it normaly works ? I want to show list of driver in pit for few second even the Trigger is on ....
Posts: 61
Emmanuel Suter wrote:
I try to use the Event Trigger DriverSwap, but it stay on Never. Does it normaly works ? I want to show list of driver in pit for few second even the Trigger is on ....
I actually ended up using Data Triggers instead of Event Triggers. It also gives me the ability to display specific driver swaps when a certain driver is getting in. (Used in my WEC style overlay too, works wonderfull)

But I'm not sure this works for your application of driver swaps
Edited (1 time)
Posts: 785
DriverSwap event was broken for a while. I fixed it but not sure if that is released already. I think so!
Posts: 287
Dwayne Prins wrote:
Emmanuel Suter wrote:
I try to use the Event Trigger DriverSwap, but it stay on Never. Does it normaly works ? I want to show list of driver in pit for few second even the Trigger is on ....
I actually ended up using Data Triggers instead of Event Triggers. It also gives me the ability to display specific driver swaps when a certain driver is getting in. (Used in my WEC style overlay too, works wonderfull)

But I'm not sure this works for your application of driver swaps
Thanks for answer, you meen you select some drivers to see if they change ? Or you do a general system for all drivers ?
Posts: 61
Emmanuel Suter wrote:
Dwayne Prins wrote:
Emmanuel Suter wrote:
I try to use the Event Trigger DriverSwap, but it stay on Never. Does it normaly works ? I want to show list of driver in pit for few second even the Trigger is on ....
I actually ended up using Data Triggers instead of Event Triggers. It also gives me the ability to display specific driver swaps when a certain driver is getting in. (Used in my WEC style overlay too, works wonderfull)

But I'm not sure this works for your application of driver swaps
Thanks for answer, you meen you select some drivers to see if they change ? Or you do a general system for all drivers ?
I only focussed driver swaps in my overlay for my team. I don't really need to display other teams their swaps