The online racing simulator
Start and End time with sector split
Hello, sorry for my English.

Could someone show an example of code, when a split sector passes, the seconds count starts and when the finish line passes, the time count ends.

Thanks!
I already have Sector1 Sector2 Sector3 and Finish line, but the time is the total race time, and I just want the time to start in Sector1 and end at the Finish line.

I'm using it like this:


CatchEvent OnCrossingChecker($userName,$Flags,$Time,$Object,$UserSpeed,$CircleIndex)

IF (($Object == "Finish line") && ($Flags == 2))
THEN
$racetime = GetLapperVar("racetime");
privmsg("Time: ".(NumToMSH($racetime)));
ELSE
ENDIF

EndCatchEvent
Attached images
lfs_00000205.jpg

FGED GREDG RDFGDR GSFDG