note that this would only work if the race is currently ended. calling OnRotateTrack while the race is going on doesn't really do anything.
Event onVoteRestartReach()
closeGlobalButton( "bargr1&bargr2" );
IF ($RotateIn <= -5)
THEN
onVoteEndReach();
ELSE
cmdLFS("/restart");
ENDIF
EndEvent
Event onVoteEndReach()
closeGlobalButton( "barge1&barge2" );
cmdLFS("/end");
/* System.Threading.Thread.Sleep(4000); */
OnRotateTrack();
EndEvent
Event OnRotateTrack()
IF ($CurrRotateTrack == "WE1R")
THEN
cmdLFS("/laps 4");
ELSE
IF ($CurrRotateTrack == "KY2")
THEN
cmdLFS("/laps 4");
ELSE
cmdLFS("/laps 6");
ENDIF
ENDIF
cmdLFS("/msg Next Track = " . $CurrLongRotateTrack);
/* track has already changed at this point, so this is correct */
cmdLFS("/msg Track changing, please wait...");
EndEvent
i could use that sleep in a couple other places, but it appears that making lapper temporarily pause isn't currently possible. (but yisc already knew that, just wanted to point that out though )
edit: i got a feature request too... can we have a "PB" store for 0-100 and possibly finish line speedtraps?