blob: 935b37221232c8536e856ce7895e024964331824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Private ["_i","_split","_unit","_yield"];
_unit = _this;
if (_unit == leader (group _unit)) exitWith {"Leader"};
_split = toArray(str _unit);
_find = _split find 58;
_yield = [];
if (_find != -1) then {
for '_i' from (_find+1) to count(_split)-1 do {
if ((_split select _i) == 65 || (_split select _i) == 32) exitWith {};
_yield = _yield + [_split select _i];
};
};
if (count _yield == 0) exitWith {"0"};
toString(_yield)
|