The online racing simulator
[Solved] Creating anglesystem
Hello! i wanted to know how to make this angle system...
I need make like this scheme:

IF( $AngleVelocity < 0 )

THEN
$AngleVelocity = -$AngleVelocity ;

SetCurrentPlayerVar("Angle_Reverse",$AngleVelocity);

closePrivButton( "anglerev&cangle");
#openPrivButton( "anglerev",169,136,20,17,1,-1,0,langEngine( "%{anglerev}%" , GetCurrentPlayerVar( "Angle_Reverse")));

ELSE

closePrivButton( "anglerev&angle");
#openPrivButton( "angle",169,136,20,17,1,-1,0,langEngine( "%{angle}%" , $AngleVelocity ));

ENDIF


IF( $AngleVelocity < 20 )

THEN
$AngleVelocity = -$AngleVelocity ;

SetCurrentPlayerVar("Angle_Reverse",$AngleVelocity);

closePrivButton( "anglerev&cangle");
#openPrivButton( "anglerev",169,136,20,17,1,-1,0,langEngine( "%{anglerev}%" , GetCurrentPlayerVar( "Angle_Reverse")));

ELSE

closePrivButton( "anglerev&angle");
#openPrivButton( "angle",169,136,20,17,1,-1,0,langEngine( "%{angle}%" , $AngleVelocity ));

ENDIF

i hope someone help me!
PICTURE in attachement
Sounds like a driftmeter, which is included as module in the Lapper download en I think there might be one or two other versions on this forum as well.
i have lattest version of Lapper
What language do you use?
i think InSim.net
Quote from Siikais1 :i think InSim.net

If you use Insim.net, your question shouldn't be in the Lapper section of this forum.
But the code you showed in your initial post, is Lapper code.
Hello Yisc[NL]!
@ first i dont know what language is on Lapper...
Sorry if something is wrong!
i think you should create something like this:

Event OnDriftScore($userName) # Player event
$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF (($AngleVelocity > 0)&&($AngleVelocity < 11)) THEN
#Button
ENDIF
IF (($AngleVelocity > 10)&&($AngleVelocity < 21)) THEN
#Button
ENDIF
IF (($AngleVelocity > 20)&&($AngleVelocity < 31)) THEN
#Button
ENDIF
#etc
EndEvent

This thread is closed

FGED GREDG RDFGDR GSFDG