[logic]
active = sr_idle@1

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

[sr_idle@spawn1]
on_info = {!squad_exist(yan_squad_stalker_in_sci_base) =smart_squad_population(stalker:yan_smart_terrain_5_6:1)} sr_idle@stop %=create_squad(yan_squad_stalker_in_sci_base:yan_smart_terrain_5_6)%

[sr_idle@stop]
on_info = {=smart_squad_population(stalker:yan_smart_terrain_5_6:1) +yan_stalker_squad_sci_base_death =smart_captured_by_faction(yan_smart_terrain_5_6:stalker) !squad_exist(yan_squad_stalker_in_sci_base)}  %=create_squad(yan_squad_stalker_in_sci_base:yan_smart_terrain_5_6) -yan_stalker_squad_sci_base_death% 
