SAIL - WantHeal

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

Moderátor: zoNE

User avatar
zoNE
The Great Uniter & Site Administrator
The Great Uniter & Site Administrator
Príspevky: 2061
Dátum registrácie: Fri Feb 17, 2006 3:44 pm
Location: Poland
Kontaktovať používateľa:

SAIL - WantHeal

Post od používateľa 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