In February 1918 he trained as a pilot and from May he was assigned to the Flik 3J fighter squadron, flying the Oeffag D.III on the Austro-Italian front.
He participated in shooting down 3 aircraft (plus 4 probable kills) and ended the war as an Oberleutnant.
In November 1918 hostilities broke out between Poland and the Western Ukrainian Republic over the possession of East Galicia and Lwów.
With war with the Soviets impending, Stec collected all Fokker E.Vs together in the 7th Eskadra, transforming it into a fighter unit.
[5] His personal emblem from the time of Austrian service, a red and white checkerboard, was adopted on December 1, 1918 as the Polish Air Force national insignia.