Dzięki Radzio ale poradziłem sobie sam wczoraj. Mam natomiast inny problem..
Błąd podczas zakończenia every. .
Kod misji..
Kód: Vybrať všetko
export tom;
export inz;
export solider;
export har;
starting
begin
inithc;
inituc;
uc_side=1;
tom=CreateCharacter('Tom');
placeunitxy(tom,20,15,true); // Do zmiany..
CenterNowOnUnits(tom);
Wait(0$2);
DialogueOn;
Say(tom, 'AM1-TOM-10');
Wait(0$2);
Say(tom, 'AM1-TOM-11');
DialogueOff;
changemissionobjectives('M3');
Wait(0$10);
inithc;
inituc;
uc_side=4;
uc_nation=nation_american;
uc_direction=5;
hc_name='Jayceon Douglas';
hc_sex=sex_male;
hc_class=class_engineer;
hc_attr=[12,11];
hc_basic_skills=[1, 0, 3, 0];
hc_skills=[1, 0, 4, 2];
// hc_importance=110;
inz=CreateHuman;
placeunitxy(inz,42,14,true);
Say(tom, 'AM1-TOM-12');
changemissionobjectives('M4');
end;
every 0$1 trigger IsInArea(tom, Area14) do
begin
SetSide(inz,GetSide(tom));
DialogueOn;
Say(tom, 'AM1-TOM-13');
Say(inz, 'AM1-INZ-1');
Say(tom, 'AM1-TOM-14');
Say(inz, 'AM1-INZ-2');
Dialogueoff;
changemissionobjectives('M5');
end;
//begin // Kombinowałem z begin ale nie pomaga
Wait(0$20); // Tutaj error
inithc; // Jak usunę wyżej tutaj error itd
inituc;
uc_side=1;
uc_nation=nation_american;
uc_direction=5;
hc_name='Alex Nilson';
hc_sex=sex_male;
hc_class=class_soldier;
hc_attr=[12,11];
hc_basic_skills=[1, 0, 3, 0];
hc_skills=[1, 0, 4, 2];
// hc_importance=110;
solider=CreateHuman;
placeunitxy(solider,30,16,true);
inithc;
inituc;
uc_side=1;
uc_nation=nation_american;
uc_direction=5;
hc_name='Gen. Ron Harrison';
hc_sex=sex_male;
hc_class=class_soldier;
hc_gallery='us1';
hc_face_number=6;
hc_attr=[12,11];
hc_basic_skills=[1, 0, 3, 0];
hc_skills=[1, 0, 4, 2];
// hc_importance=110;
har=CreateHuman;
Say(inz, 'AM1-INZ-3');
Say(solider, 'AM1-SOL-1');
Say(tom, 'AM1-TOM-15');
Say(tom, 'AM1-TOM-16');
Say(solider, 'AM1-SOL-2');
SayRadio(har,'AM1-HAR-1');
Say(solider, 'AM1-SOL-3');
SayRadio(har,'AM1-HAR-2');
Say(solider, 'AM1-SOL-4');
changemissionobjectives('M6');
end;
proszę o pomoc