mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Added while and switch.
This commit is contained in:
@@ -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
26
in/zeus.asl
Normal 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());
|
||||
}
|
||||
Reference in New Issue
Block a user