Added main.

This commit is contained in:
Marvin Blum
2015-10-25 16:57:00 +01:00
parent a1d7fc977e
commit 4471ae285e
9 changed files with 190 additions and 15 deletions

View File

@@ -22,13 +22,13 @@ if (!isNil _getunit) then { // unit exists?
*/
if !isServer && player != player {
exit()(); // does not work for SQF, need to implement exitWith...
waituntil(player == player);
}
var _getunit = select(_this)(0);
var _file = select(_this)(1);
if !(isNil()(_getunit)) {
if !isNil()(_getunit) {
var _unit = objNull;
call()(compile()(format()("_unit = %1", _getunit)));

8
in/sub/sub.asl Normal file
View File

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

0
in/sub/test.txt Normal file
View File