[logic]
active = sr_idle@1

[sr_idle@1]
on_info = {+yan_ready_actor_cut2} sr_idle@spawn1

[sr_idle@spawn1]
on_actor_outside = {=smart_captured_by_faction(yan_smart_terrain_5_3:zombied)} %=create_squad(yan_squad_zombi_in_sci_base7:yan_smart_terrain_5_3)% sr_idle@spawn2, {!is_smart_captured(yan_smart_terrain_5_3)} %=create_squad(yan_squad_zombi_in_sci_base7:yan_smart_terrain_5_3)% sr_idle@spawn2

[sr_idle@spawn2]
on_actor_outside = {=smart_captured_by_faction(yan_smart_terrain_5_5:zombied)} %=create_squad(yan_squad_zombi_in_sci_base11:yan_smart_terrain_5_5)% sr_idle@end,  {!is_smart_captured(yan_smart_terrain_5_5)} %=create_squad(yan_squad_zombi_in_sci_base11:yan_smart_terrain_5_5)% sr_idle@end

[sr_idle@end]