I can't seem to find the answer to this anywhere so...
Brief:
I'm making a hotlap server, but has some rpg elements to it for people who are spectating/parking/fooling around in car park.
Objective:
So I'm trying to write a script that pitlanes on wrong way at a certain point (see image for wrong way direction). At the moment, I can RegisterNodeAction and can execute a "pitlane" command, the problem is, I cannot specify a direction...
Script:
RegisterNodeAction( "BL1", 339, ReverseCheck, "" );
Sub ReverseCheck ( $userName, $ZoneID )
Comment:
As you can see there's a problem with indicating the direction, and the manual only says:
"Direction: 0 = positive y-direction."
Solutions?
Are there any other variables I can use? How would you approach this problem?
(And no, I need cruise mod lol)
Brief:
I'm making a hotlap server, but has some rpg elements to it for people who are spectating/parking/fooling around in car park.
Objective:
So I'm trying to write a script that pitlanes on wrong way at a certain point (see image for wrong way direction). At the moment, I can RegisterNodeAction and can execute a "pitlane" command, the problem is, I cannot specify a direction...
Script:
RegisterNodeAction( "BL1", 339, ReverseCheck, "" );
Sub ReverseCheck ( $userName, $ZoneID )
IF ( $Mode == "Cruise" )EndSub
THEN
GlobalMsg( "Player is Exiting Pits" );ENDIF
IF ( GetPlayerVar( $userName, $Direction ) != "0" )
THENENDIF
GlobalMsg( "Attempting to Spectate Player for Wrong Way" );
cmdLFS( "/pitlane " . GetPlayerVar( $userName , "UserName") );
HERE I JUST ADD MESSAGES AND FINES
Comment:
As you can see there's a problem with indicating the direction, and the manual only says:
"Direction: 0 = positive y-direction."
Solutions?
Are there any other variables I can use? How would you approach this problem?
(And no, I need cruise mod lol)