Refactor the interact_menu so options for multiple objects can coexist inside a single action point

This commit is contained in:
Nicolás Badano
2015-03-17 00:37:28 -03:00
parent eb4ccd9505
commit 3030b78ea2
4 changed files with 14 additions and 13 deletions

View File

@ -66,12 +66,11 @@ _activeActionTree = [
_object, _uid, 0.2
] call EFUNC(common,cachedCall);
// Check if there's something left for rendering
if (count _activeActionTree == 0) exitWith {false};
//EXPLODE_2_PVT(_activeActionTree,_actionData,_actionChildren);
[_object, _activeActionTree, _pos, [180,360]] call FUNC(renderMenu);
[[], _activeActionTree, _pos, [180,360]] call FUNC(renderMenu);
true