Polski Česky English Français Русский Español
Home Site Original War Support Community Forums Facebook YouTube Discord
Your first time here? View this!
» Index > Modding Archive > SAIL - Bomba samobieżna - atak pobliskuego celu

SAIL - Bomba samobieżna - atak pobliskuego celu

Gothuk pisze:a po co ma sie every wykonywac jak juz nie bedzie bomby? ^^

edit. dobra drobna poprawka

Kod:

every 0$1 trigger IsOK(b1) do
var unit;
begin
   unit := NearestUnitToUnit(side_wroga, b1) ;
   if (GetDistUnits(b1, unit)<10) then 
      AddComAttackUnit(b1, unit);
end;

Author: Gothuk
Topic: https://forum.original-war.net/viewtopic.php?f=6&t=1748

» Index > Modding Archive > SAIL - Bomba samobieżna - atak pobliskuego celu