This commit is contained in:
Marvin Blum
2015-10-25 18:34:45 +01:00
parent 2788ea1397
commit bf283cb87a
12 changed files with 22 additions and 84 deletions

View File

@@ -1,42 +0,0 @@
/*
if (!isServer && player != player) then { // wait until player is on the server
waitUntil {player == player};
};
_getunit = _this select 0;
_file = _this select 1;
if (!isNil _getunit) then { // unit exists?
_unit = objNull;
call compile format ["_unit = %1", _getunit];
if (local _unit) then { // test if local (player character)
try {
[_unit] execVM _file;
}
catch {
// do nothing
}
}
};
*/
if !isServer && player != player {
waituntil(player == player);
}
var _getunit = select(_this)(0);
var _file = select(_this)(1);
if !isNil()(_getunit) {
var _unit = objNull;
call()(compile()(format()("_unit = %1", _getunit)));
if local()(_unit) {
try {
execVM(_unit)(_file);
} catch {
// do nothing
}
}
}

View File

@@ -1,8 +1,6 @@
waituntil(x = x+1; x < 100);
var array = [1, 2, 3];
var x = array[0];
if timeIsOver {
exitwith {
foo();
bar();
}
if array[1] == 2 {
foo();
}

View File

View File

@@ -1,8 +0,0 @@
var x = 1;
var y = 3;
func foo(x, y) {
return x+y
}
hint()(format()("%1", foo(x, y)));

View File