// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database/) on 24.2.2014
{$CLEO .cs}

//-------------MAIN---------------
03A4: script_name "PCAR" 

:PCAR_8
0001: wait 0 
00D6: if and
0256:   is_player_playing $PLAYER_CHAR 
00FE:   locate_char_any_means_3d $PLAYER_ACTOR coord -725.857 -1540.63 92.75 radius 100.0 100.0 100.0 sphere 0 
004D: goto_if_false @PCAR_8 
0395: clear_area -725.857 -1540.63 92.75 radius 15.0 clear_particles 1 
0247: request_model #INFERNUS 
0247: request_model #NRG500 
038B: load_all_models_now 

:PCAR_101
0001: wait 0 
00D6: if and
0248:   has_model_loaded #INFERNUS 
0248:   has_model_loaded #NRG500 
004D: goto_if_false @PCAR_101 
00A5: create_car #INFERNUS at -725.857 -1540.63 92.75 store_to 1@ 
0175: set_car_heading 1@ to 0.0 
0229: change_car_colour 1@ primary_to 1 secondary_to 0 
00A5: create_car #NRG500 at -725.589 -1546.93 91.5 store_to 4@ 
0175: set_car_heading 4@ to 0.0 
0229: change_car_colour 4@ primary_to 3 secondary_to 25 
0249: mark_model_as_no_longer_needed #INFERNUS 
0249: mark_model_as_no_longer_needed #NRG500 

:PCAR_220
0001: wait 0 
00D6: if and
0256:   is_player_playing $PLAYER_CHAR 
80FE:   not locate_char_any_means_3d $PLAYER_ACTOR coord -725.857 -1540.63 92.75 radius 200.0 200.0 200.0 sphere 0 
004D: goto_if_false @PCAR_220 
01C3: mark_car_as_no_longer_needed 1@ 
01C3: mark_car_as_no_longer_needed 4@ 
0001: wait 1000 
0002: goto @PCAR_8 
