mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Build in functions.
This commit is contained in:
28
in/complex.asl
Normal file
28
in/complex.asl
Normal file
@@ -0,0 +1,28 @@
|
||||
if isServer {
|
||||
exitWith();
|
||||
}
|
||||
|
||||
func ZeusGrpPlaced(_curators, _group) {
|
||||
each allCurators-_curators {
|
||||
$addCuratorEditableObjects<_x>(_group, true);
|
||||
}
|
||||
}
|
||||
|
||||
func ZeusObjPlaced(_curators, _unit) {
|
||||
each allCurators-_curators {
|
||||
$addCuratorEditableObjects<_x>([_unit], true);
|
||||
}
|
||||
}
|
||||
|
||||
each allCurators {
|
||||
$addCuratorEditableObjects<_x>(allUnits, true);
|
||||
$addCuratorEditableObjects<_x>(allMissionObjects("All"), false);
|
||||
|
||||
_curator = _x;
|
||||
|
||||
each allUnits {
|
||||
if vehicle(_x) != _x {
|
||||
$addCuratorEditableObjects<_curator>([vehicle(_x)], true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user