
[logic]
active = heli_move@x16

[heli_move@x16]
path_move = heli_move_2
path_look = heli_look_2
engine_sound = true
combat_enemy = nil
combat_use_rocket = true
combat_use_mgun = true
rocket_delay = 3000
combat_safe_altitude = 0
on_timer = 30000 | heli_move@mgun

[heli_move@mgun]
path_move = heli_move_2
path_look = heli_look_1
engine_sound = true
combat_enemy = actor
combat_use_rocket = false
combat_use_mgun = true
rocket_delay = 3000
combat_safe_altitude = 0
on_actor_in_zone = yantar_bunker_space_restrictor | heli_move@wait
on_timer = 8000 | heli_move@rockets

[heli_move@rockets]
path_move = heli_move_1
path_look = heli_look_2
engine_sound = true
combat_enemy = actor
combat_use_rocket = true
combat_use_mgun = true
rocket_delay = 3000
combat_safe_altitude = 0
on_actor_in_zone = yantar_bunker_space_restrictor | heli_move@wait
on_timer = 600000 | heli_move@retreat

[heli_move@wait]
path_move = heli_move_2
path_look = heli_look_1
combat_use_rocket = false
combat_use_mgun = false
combat_safe_altitude = 0
on_actor_not_in_zone = yantar_bunker_space_restrictor | heli_move@rockets
on_timer = 600000 | heli_move@retreat

[heli_move@retreat]
path_move = heli_move_end_2
path_look = heli_look_2
engine_sound = true
combat_enemy = nil
combat_use_rocket = false
combat_use_mgun = false
combat_safe_altitude = 0
on_timer = 10000 | heli_move@end

[heli_move@end]
path_move = heli_move_end_2
engine_sound = false
