This commit is contained in:
Nicolás Badano
2015-03-21 09:37:01 -03:00
parent 4fe09034ff
commit 4a8b5079a6
4 changed files with 43 additions and 5 deletions

View File

@ -15,9 +15,13 @@
private ["_parentPath","_actionName"];
_parentPath = [];
for "_i" from 0 to (count _this) - 1 do {
for [{_i = 0},{_i < (count _this) - 1},{_i = _i + 1}] do {
_parentPath pushBack (_this select _i);
};
_actionName = _this select ((count _this) - 1);
_actionName = if (count _this > 0) then {
_this select ((count _this) - 1);
} else {
""
};
[_parentPath, _actionName]