{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
0000:

thread "TRAINHORN" 
Audiostream.Load(20@, "CLEO\AUDIO\tep70beep.MP3")

:TRAINHORN_50
wait 0 
if and
   Player.Defined($PLAYER_CHAR)
jf @TRAINHORN_50
if or
00E1:   player 0 pressed_key 18 
0AB0:  key_pressed 0x66
jf @TRAINHORN_50 
if
//if or
//00DD:   actor $PLAYER_ACTOR driving_car_with_model #FREIGHT 
00DD:   actor $PLAYER_ACTOR driving_car_with_model 538
//00DD:   actor $PLAYER_ACTOR driving_car_with_model 3150
//00DD:   actor $PLAYER_ACTOR driving_car_with_model 4764 
//00DD:   actor $PLAYER_ACTOR driving_car_with_model 3136 
//00DD:   actor $PLAYER_ACTOR driving_car_with_model 4549
//00DD:   actor $PLAYER_ACTOR driving_car_with_model 4547
//00DD:   actor $PLAYER_ACTOR driving_car_with_model 4764
jf @TRAINHORN_50 
03C0: 0@ = actor $PLAYER_ACTOR car 
1@ = Audiostream.Length(20@)
1@ *= 1000 
Audiostream.PerformAction(20@, STOP)
Audiostream.PerformAction(20@, PLAY)
wait 1@ 
jump @TRAINHORN_50 
