SAIL - WantHeal

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: 2059
Joined: Fri Feb 17, 2006 3:44 pm
Location: Poland
Contact:

SAIL - WantHeal

Post by zoNE »

Serpent wrote:Funkcja zwraca prawdę jeśli naukowiec (sci) chce leczyć jednostkę (unit).

Code: Select all

Export Function WantHeal(sci, unit);
begin
if GetTaskList(sci) > 0 then
   begin
   if GetTaskList(sci)[1][1] = 'l' and GetTaskList(sci)[1][4] = unit then
      result := true
       else
        result := false;
   end
    else
     result := false;
End;
Author: Serpent
Topic: https://forum.original-war.net/viewtopi ... =42&t=4560
Post Reply