Added while and switch.

This commit is contained in:
Marvin Blum
2015-09-21 17:16:00 +02:00
parent af7a0a9f4c
commit 1f0730b984
7 changed files with 103 additions and 10 deletions

View File

@@ -1,6 +1,9 @@
if (4 < (5+5)/2 || ((3-3)*10-5)) {
hint("hallo welt");
}
else {
hint("no");
var _x = 3;
switch _x {
case 1:
case 2:
somefunc(2);
default:
somefunc(3);
}

26
in/zeus.asl Normal file
View File

@@ -0,0 +1,26 @@
if isServer {
exitWith();
}
func ZeusGrpPlaced(_group) {
}
func ZeusObjPlaced(_unit) {
}
foreach curator => allCurators {
addCuratorEditableObjects(curator, allUnits, true);
addCuratorEditableObjects(curator, allMissionObjects("All"), false);
foreach unit => allUnits {
var _vehicle = vehicle(unit);
if _vehicle != unit {
addCuratorEditableObjects(curator, _vehicle, true);
}
}
addEventHandler(curator, "CuratorGroupPlaced", BIS_fnc_MP());
}