Napisano dnia: 2011-01-13 14:47:37
Niech mi ktoś powie jak wie jak dopisać do tej pętli że gdy pojazd dotrze na miejsce to jest dalszy ciąg misji?
Oczywiście próbowałem dodać taką ale coś nie chce działać.
Kod:
{$VERSION 3.1.0027}
{$CLEO .cs}
//-------------MAIN---------------
0000: test
0247: request_model #rdtrain //
038B: load_requested_models
0@ = Marker.CreateIconAndSphere(23, 2770.9114, -2409.4753, 13.6276)
:a1
wait 0
if
00ED: actor $PLAYER_ACTOR 0 near_point 2770.9114 -2409.4753 radius 2.0 2.0 on_foot
jf @a1
Marker.Disable(0@)
00A5: 1@ = create_car #rdtrain at 2780.1948 -2418.7534 12.7289
0175: set_car 1@ z_angle_to 90.0
0229: set_car 1@ color_to 2 1
:start1
0186: 2@ = create_marker_above_car 1@ //nad pojazdem
:a2
wait 0
if
0119: car 1@ wrecked
jf @a3
Marker.Disable(2@) //nad pojazdem
00A6: destroy_car 1@
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1
jump @exit1
:a3
wait 0
if
0118: actor $PLAYER_ACTOR dead
jf @a4
Marker.Disable(2@) //nad pojazdem
00A6: destroy_car 1@
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1
jump @exit1
:a4
wait 0
if
Actor.InCar($PLAYER_ACTOR, 1@)
jf @a6
Marker.Disable(2@) //nad pojazdem
0@ = Marker.CreateIconAndSphere(51, 2744.4121, -2421.5759, 13.6289)
:a5
wait 0
if
not Actor.InCar($PLAYER_ACTOR, 1@)
jf @a5
Marker.Disable(0@) //mareker docelowy
jump @start1
:a6
wait 0
if
00EE: actor $PLAYER_ACTOR 0 near_point 2744.4121 -2421.5759 radius 10.0 10.0 in_car
jf @a2
Marker.Disable(0@)
02A3: enable_widescreen 1
:exit1
0A93: end_custom_thread
{$CLEO .cs}
//-------------MAIN---------------
0000: test
0247: request_model #rdtrain //
038B: load_requested_models
0@ = Marker.CreateIconAndSphere(23, 2770.9114, -2409.4753, 13.6276)
:a1
wait 0
if
00ED: actor $PLAYER_ACTOR 0 near_point 2770.9114 -2409.4753 radius 2.0 2.0 on_foot
jf @a1
Marker.Disable(0@)
00A5: 1@ = create_car #rdtrain at 2780.1948 -2418.7534 12.7289
0175: set_car 1@ z_angle_to 90.0
0229: set_car 1@ color_to 2 1
:start1
0186: 2@ = create_marker_above_car 1@ //nad pojazdem
:a2
wait 0
if
0119: car 1@ wrecked
jf @a3
Marker.Disable(2@) //nad pojazdem
00A6: destroy_car 1@
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1
jump @exit1
:a3
wait 0
if
0118: actor $PLAYER_ACTOR dead
jf @a4
Marker.Disable(2@) //nad pojazdem
00A6: destroy_car 1@
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1
jump @exit1
:a4
wait 0
if
Actor.InCar($PLAYER_ACTOR, 1@)
jf @a6
Marker.Disable(2@) //nad pojazdem
0@ = Marker.CreateIconAndSphere(51, 2744.4121, -2421.5759, 13.6289)
:a5
wait 0
if
not Actor.InCar($PLAYER_ACTOR, 1@)
jf @a5
Marker.Disable(0@) //mareker docelowy
jump @start1
:a6
wait 0
if
00EE: actor $PLAYER_ACTOR 0 near_point 2744.4121 -2421.5759 radius 10.0 10.0 in_car
jf @a2
Marker.Disable(0@)
02A3: enable_widescreen 1
:exit1
0A93: end_custom_thread
Oczywiście próbowałem dodać taką ale coś nie chce działać.