SAIL - WantChangeClass

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

Moderator: zoNE

Post Reply
User avatar

Topic author
zoNE
The Great Uniter & Site Administrator
The Great Uniter & Site Administrator
Posts: 1570
Joined: Fri Feb 17, 2006 3:44 pm
Location: Poland
Contact:

SAIL - WantChangeClass

#1

Post by zoNE » Tue Nov 03, 2015 10:11 pm

Serpent wrote:Funkcja zwraca prawdę jeżeli jednostka chce zmienić swoją klasę na klasę = class.

Code: Select all

Export Function WantChangeClass(unit, class);
var i;
begin

     if GetTaskList(unit) then
        begin
        for i = 1 to GetTaskList(unit) do
            if '!' = GetTaskList(unit)[i][1] and
             class = GetTaskList(unit)[i][5] then
              begin
              result := true;
              break;
              end
               else
                result := false;
        end
         else
          result := false;
End;
Author: Serpent
Topic: viewtopic.php?f=42&t=4547

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest