1 | if (x > x_destination) |
2 | { |
3 | x -= move_speed; |
4 | if (x <= x_destination) |
5 | { |
6 | x = x_destination; |
7 | launch_alarm_active = true; |
8 | alarm[0] = launch_alarm; |
9 | } |
10 | for (i = 0; i < random_frames; i++) |
11 | { |
12 | with (id_frame_middle[i]) |
13 | event_user(0); |
14 | } |
15 | with (id_frame_center) |
16 | event_user(0); |
17 | } |
18 | else if (launch_alarm_active == false && id_arm.launch_state == 0) |
19 | { |
20 | launch_alarm_active = true; |
21 | alarm[0] = launch_alarm; |
22 | } |