
CAR_DATA mini_1
OBJ_DATA remote_1
CAR_DATA truck_1
CHAR_DATA truka_1

FORWARD clean_up_green_phone1:
FORWARD rcmissionp2:


THREAD_TRIGGER rc_thread = THREAD_WAIT_FOR_CHAR_IN_AREA ( p1 , 139.5 , 115.5 , 2.0 , 0.2 , 0.2 , rcmissionp2: )







green_phone1:

SET failed_green_phone1 = 0

SET flag_on_mission = 1
SET flag_on_green_mission = 1




mini_1 = CREATE_CAR ( 105.0 , 30.5 , 255.0 )  3  270  edsel  MINI_CAR END
remote_1 = CREATE_OBJ ( 139.5 , 115.5 ) 0 REMOTE  END
DELAY_HERE ( 400 )
POINT_ARROW_AT ( blaow , remote_1 )
DISPLAY_BRIEF_NOW ( 1094 )
ENABLE_THREAD_TRIGGER ( rc_thread ) 
GIVE_WEAPON ( mini_1 , car_bomb )
truck_1 = CREATE_CAR ( 196.5 , 205.0 , 2.0 )  1  180  BOXTRUCK END
truka_1  =  CREATE_CHAR_INSIDE_CAR  ( truck_1 ) 2  CRIMINAL  END
MAKE_CAR_DRIVE_AWAY ( truck_1 )

return


rcmissionp2:
POINT_ARROW_AT ( blaow , truck_1 )
TAKE_REMOTE_CONTROL_OF_CAR  ( p1 , mini_1 ) 
DELETE_ITEM ( remote_1 )
DISABLE_THREAD_TRIGGER ( rc_thread )
SET rcount = 1



WHILE_EXEC ( rcount = 1 )
IF ( ( IS_CAR_WRECKED ( truck_1 ) )
AND ( passed_green_phone1 = 0 ) )
	DISPLAY_BRIEF ( 3180 ) 
	++ counter_all_missions_passed
	SET passed_green_phone1 = 1
	DISPLAY_MESSAGE ( 3100 ) 
	ADD_SCORE ( p1 , 40000 )
	ADD_MULTIPLIER ( p1 , 1 )
	CHANGE_GANG_CHAR_RESPECT_AND_UPDATE ( gng1 , p1 , 1 ) 
	CLEAR_WANTED_LEVEL ( p1 )
	SET_PHONE_DEAD ( green_phone1 ) 
	DISABLE_THREAD_TRIGGER ( thr_green_phone1 ) 
        REMOVE_ARROW  ( blaow )
        GOSUB clean_up_green_phone1: 
	RETURN
ENDIF
ENDWHILE

WHILE_EXEC ( rcount = 1 )
IF ( ( IS_CAR_WRECKED ( mini_1 ) )
AND ( NOT ( IS_CAR_WRECKED ( truck_1 ) ) ) )
	DISPLAY_BRIEF ( 3164 ) 
	DISPLAY_MESSAGE ( 3730 ) 		
	SET failed_green_phone1 = 1
        REMOVE_ARROW  ( blaow )
        GOSUB clean_up_green_phone1: 
	RETURN
ENDIF
ENDWHILE





RETURN


clean_up_green_phone1: 
IF ( passed_green_phone1 = 1 )
		++ flag_green_missions_passed
		++ flag_all_missions_passed
		IF ( flag_green_missions_passed = 7 )
			DISPLAY_BRIEF ( 3671 ) 
			DISPLAY_MESSAGE ( 3670 ) 
                       RETURN
		ENDIF

	ENDIF




	SET flag_on_mission	= 0
	SET flag_on_green_mission = 0
        
	MISSION_HAS_FINISHED ( ) 
	
	
	RETURN



MISSIONSTART

	GOSUB green_phone1:

	

MISSIONEND 







