SAIL - Bomba samobieżna - atak pobliskuego celu

Gotowe kody SAIL'a, informacje na temat moddingu, itd.

Moderator: zoNE

Post Reply
User avatar
zoNE
The Great Uniter & Site Administrator
The Great Uniter & Site Administrator
Posts: 2061
Joined: Fri Feb 17, 2006 3:44 pm
Location: Poland
Contact:

SAIL - Bomba samobieżna - atak pobliskuego celu

Post by zoNE »

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

edit. dobra drobna poprawka

Code: Select all

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: http://forum.original-war.net/viewtopic.php?f=6&t=1748
Post Reply