mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Added main.
This commit is contained in:
@@ -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
8
in/sub/sub.asl
Normal 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
0
in/sub/test.txt
Normal file
Reference in New Issue
Block a user