mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Added main.
This commit is contained in:
15
out/complex.sqf
Normal file
15
out/complex.sqf
Normal file
@@ -0,0 +1,15 @@
|
||||
if (!isServer&&player!=player) then {
|
||||
waitUntil {player==player};
|
||||
};
|
||||
_getunit = (_this select 0);
|
||||
_file = (_this select 1);
|
||||
if (!(isNil _getunit)) then {
|
||||
_unit = objNull;
|
||||
call (compile (format ["_unit = %1", _getunit]));
|
||||
if ((local _unit)) then {
|
||||
try {
|
||||
_unit execVM _file;
|
||||
} catch {
|
||||
};
|
||||
};
|
||||
};
|
||||
7
out/simple.sqf
Normal file
7
out/simple.sqf
Normal file
@@ -0,0 +1,7 @@
|
||||
waitUntil {x=x+1;x<100};
|
||||
if (timeIsOver) then {
|
||||
if (true) exitWith {
|
||||
[] call foo;
|
||||
[] call bar;
|
||||
};
|
||||
};
|
||||
8
out/sub/sub.sqf
Normal file
8
out/sub/sub.sqf
Normal file
@@ -0,0 +1,8 @@
|
||||
x = 1;
|
||||
y = 3;
|
||||
foo = {
|
||||
x = _this select 0;
|
||||
y = _this select 1;
|
||||
return x+y;
|
||||
};
|
||||
hint (format ["%1", ([x, y] call foo)]);
|
||||
Reference in New Issue
Block a user