:MISSION_START
gosub @MISSION_PASSED
return
:MISSION
increment_mission_attempts
fade 0 1000
wait 1000
$ONMISSION = 1
//Здесь размещается код миссии
return
:MISSION_PASSED
01E3: text_1number_styled 'M_PASSD' 0 5000 ms 1
018C: play_sound 1
return
:MISSION_FAILED
00BA: text_styled 'M_FAIL' 5000 ms 1
return
:MISSION_CLEANUP
$ONMISSION = 0
mission_cleanup
return
:MODEL_1
wait 0
if
Model.Available(#AMBULAN)
jf @MODEL_1
:MODEL_2
//Здесь вы используете свою модель
wait 0
Model.Destroy(#AMBULAN)
:MISSION_START
gosub @MISSION_PASSED
return
:MISSION
increment_mission_attempts
fade 0 1000
wait 1000
$ONMISSION = 1
Model.Load(#BALLAS2)
Model.Load(#AK47)
:MODELS_CHECK
if and
Model.Available(#BALLAS2)
Model.Available(#AK47)
jf @MODELS_CHECK
Actor.Create(0@, 7, #BALLAS2, 0.0, 0.0, 0.0)
01B2: give_actor 0@ weapon 31 ammo 2000
05E2: AS_actor 0@ kill_actor $PLAYER_ACTOR
Marker.CreateAboveActor(1@, 0@)
:BALLAS_KILLED
wait 0
if
Actor.Dead(0@)
jf @BALLAS_KILLED
Marker.Destroy(1@)
jump @MISSION_PASSED
return
:MISSION_PASSED
01E3: text_1number_styled 'M_PASSD' 0 5000 ms 1
018C: play_sound 1
return
:MISSION_FAILED
00BA: text_styled 'M_FAIL' 5000 ms 1
return
:MISSION_CLEANUP
$ONMISSION = 0
mission_cleanup
return
:MISSION_START
wait 0
if
00FF: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 0.0 radius 1.2 1.2 2.0 on_foot
jf @MISSION_START
Marker.Disable(2@)
00BA: show_text_styled GXT 'SWEET_1' time 1000 style 24
0A94: start_custom_mission "MISSION"
jump @STARTER