SAIL - WantHeal

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

Moderátor: zoNE

Odpovědět
Uživatelský avatar
zoNE
The Great Uniter & Site Administrator
The Great Uniter & Site Administrator
Příspěvky: 2061
Registrován: pát úno 17, 2006 3:44 pm
Bydliště: Poland
Kontaktovat uživatele:

SAIL - WantHeal

Příspěvek od zoNE »

Serpent píše:Funkcja zwraca prawdę jeśli naukowiec (sci) chce leczyć jednostkę (unit).

Kód: Vybrat vše

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
Odpovědět