
Player side = 2
PC side = 1
Code: Select all
EXPORT konstanta_utoceni;
EVERY 0$1 DO
VAR pom,i;
VAR Ar_Units;
begin
konstanta_utoceni=0;
Ar_Units=FilterAllUnits([[f_side,2],[f_or,[f_type,unit_human],[f_type,unit_vehicle]]]);
for i in Ar_Units do
begin
pom=Attacks(i);
if pom<>0 then if Getside(pom) in [2,1] then konstanta_utoceni=1;
end;
if konstanta_utoceni=0 then enable;
end;
every 0$0.25 trigger konstanta_utoceni=1 do
begin
...my code
end;
Someone knows?