1.
Code: Select all
Export czolg1,czolg2;
Export budowniczy;
Every 0$1 trigger GetDistUnits(fac1,abc)<10 or GetDistUnits(fac1,abc1)<10 or GetDistUnits(fac1,abc2)<10 do
Begin
czolg1 = addcomconstruct(fac1, ru_heavy_tracked,engine_combustion,control_manual,ru_gatling_gun);
czolg2 = addcomconstruct(fac1, ru_medium_tracked,engine_combustion,control_manual,ru_gun);
end;
on VehicleConstructed(un, fab) do
Begin
if fab = fac1 then if un= czolg2 then if budowniczy= FilterAllUnits([f_class,class_mechanic]) then
AddComAgressiveMove([czolg1,czolg2],112,72);
AddComExitVehicle(budowniczy);
AddComEnterUnit(budowniczy,fac1);
end;
Code: Select all
Export czolg1,czolg2;
Export budowniczy;
Every 0$1 trigger GetDistUnits(fac1,abc)<10 or GetDistUnits(fac1,abc1)<10 or GetDistUnits(fac1,abc2)<10 do
Begin
czolg1 = addcomconstruct(fac1, ru_heavy_tracked,engine_combustion,control_manual,ru_gatling_gun);
czolg2 = addcomconstruct(fac1, ru_medium_tracked,engine_combustion,control_manual,ru_gun);
end;
on VehicleConstructed(un, fab) do
Begin
if fab = fac1 then if un= czolg1 or czolg 2 then if budowniczy= FilterAllUnits([f_class,class_mechanic]) then
AddComMoveToArea(un,arena);
AddComExitVehicle(budowniczy);
AddComEnterUnit(budowniczy,fac1);
end;
3.
Code: Select all
on VehicleConstructed(un, fab) do
Begin
if fab = fac1 then if un= czolg2 then
ComAgressiveMove([czolg1,czolg2],112,72);
end;
Kombinuje i kombinuje i biorą mnie diabli. Pomocy. kod na "budowniczego" jest dobry bo jak mówię raz kierowca wysiadł z pojazdu w przypadki 2) o ile dobrze go napisałem bo mam sklere