mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Missing != operator, added test for all of them.
This commit is contained in:
@@ -1,2 +1,39 @@
|
||||
//diag_log format ["easyHC: found headless client with ID %1.", easyHCpresent];
|
||||
diag_log () (format(xy)("asdf", "hjkl"));
|
||||
/*
|
||||
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 {
|
||||
exit()(); // does not work for SQF, need to implement exitWith...
|
||||
}
|
||||
|
||||
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...catch
|
||||
execVM(_unit)(_file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user