#pun-title h1 span {display: none;}

Союз | Union

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Союз | Union » News and comments » Scripts with Area


Scripts with Area

Сообщений 1 страница 2 из 2

1

Hello guys,

i am creating a multiplayer map  (2x2)and when i have tried to make a scripts with "script area" those ones kills every scripts before after in the lua files and there is no script in the game. I dont know if trouble is just in the lua scripts or i have had done some shit in Mapeditor bzm file.

There are two variants: first for the players 0,1,2,3 and the second for unit id................... both variants do the same thing.

function BonusG1()
or ( GetNUnitsInArea(0, "flag1") > 1)
or ( GetNUnitsInArea(0, "flag2") > 1)
or ( GetNUnitsInArea(0, "flag3") > 1) then
num = RandomInt(22) + 5000;
LandReinforcement(num);
Suicide();
end;
end;

or

function BonusG1()
or ( GetNScriptUnitsInArea(3000, "flag1") > 1)
or ( GetNScriptUnitsInArea(3000, "flag2") > 1)
or ( GetNScriptUnitsInArea(3000, "flag3") > 1) then
num = RandomInt(22) + 5000;
LandReinforcement(num);
Suicide();
end;
end;

Here is a whole archive

http://www.filefactory.com/file/b3f57fa/n/002.zip

Many thanks

Martin

Отредактировано SoundeluxCZ (2010-10-15 12:48:12)

0

2

Russian mirror: http://merimets.ifolder.ru/20175693

Отредактировано Shabar (2010-11-09 02:43:02)

0


Вы здесь » Союз | Union » News and comments » Scripts with Area