Выбор случайоного педа на улице
Есть такой опкод, который выбирает случайную машину на улице, а людей нет. Непорядок думаю надо исправить! Теперь то же самое и с людьми! Походим к актёру и жмём ТАБ до тех пор пока он не выделится маркером!
:Random_act
0001: wait 0 ms
0006: $pr = 0 ;; integer values
00D6: if 0
80DF: NOT actor $PLAYER_ACTOR driving
004D: jump_if_false ЈЈRandom_act
00D6: if 0
00E1: key pressed 0 4
004D: jump_if_false ЈЈRandom_act
04C4: create_coordinate $X2 $Y2 $Z2 from_actor $PLAYER_ACTOR offset 2.0 2.0 0.0
04C4: create_coordinate $X3 $Y3 $Z3 from_actor $PLAYER_ACTOR offset -2.0 -2.0 0.0
00D6: if 0
0039: $pr == 0 ;; integer values
004D: jump_if_false ЈЈRandom_act
0396: 0 (clear) useless_flag
0376: @88 = create random actor 0.0 0.0 0.0
0008: $pr += 1 ;; integer values
01C2: remove_references_to_actor @88 ;; Like turning an actor into a random pedestrian
0767: 'SAN_AND' 1
02DD: set_actor @88 creation_zone 'SAN_AND' 1 0 1
00D6: if 0
056D: carcass_of_actor @88 valid
004D: jump_if_false ЈЈRandom_act2
00D6: if 0
0104: actor $PLAYER_ACTOR near actor @88 radius 2.0 2.0 2.0 sphere 0 ;;дистанцию регулировать здесь
004D: jump_if_false ЈЈRandom_act2
0187: $m_rand = create marker above actor @88
0396: 1 (set) useless_flag
01C2: remove references to actor @88
00BA: text styled 'BEEFY' 1000 ms 2 ; Beefy Baron
0001: wait 3000 ms
0164: disable marker $m_rand
0006: $pr = -1 ;; integer values
0249: release model @88
01C5: remove actor from mission cleanup list @88
00D8: mission cleanup
01C2: remove_references_to_actor @88 ;; Like turning an actor into a random pedestrian
0006: $pr = 0 ;; integer values
0002: jump ЈЈRandom_act
:Random_act2
03C4: set status text to $pr 0 (number) 'ZER2_43' ; Score ~1~
009B: destroy actor instantly @88
0006: $pr = -1 ;; integer values
;0317: increment mission attempts
01C5: remove actor from mission cleanup list @88
01C2: remove_references_to_actor @88 ;; Like turning an actor into a random pedestrian
00D8: mission cleanup
0006: $pr = 0 ;; integer values
0001: wait 100 ms
0002: jump ЈЈRandom_act