_MenuPlatoons = [];
{
_MenuPlatoons = _MenuPlatoons +
[
[["Item",_x + ". Platoon"],["SubMenu", _x +"PMenu"]]
]
} forEach ["1","2","3","4"];
_MenuInnerPlatoons =[];
{
_MenuInnerPlatoons = _MenuInnerPlatoons +
[_x + "PMenu",
[
["Caption", _x + " Platoon"],
["Items",
[
[ ["Item", "-"] ],
[ ["Item", "Test1"], ["SubMenu", ""] ],
[ ["Item", "Test2"], ["SubMenu", ""] ],
[ ["Item", "-"] ],
[ ["Item", "Close Menu"],["Close", true],["Default", true] ]
]
]
]
]
} forEach ["1","2","3","4"];
_MenuStructureArray =
[
["MainMenu",
[
["Caption", "Men"],
["Items",
[
[ ["Item", "-"] ],
[ ["Item", "Platoons >"], ["SubMenu", "Platoons"] ],
[ ["Item", "Support >"], ["SubMenu", "Support"] ],
[ ["Item", "-"] ],
[ ["Item", "Close Menu"],["Close", true],["Default", true] ]
]
]
]
],
["Platoons",
[
["Caption", "Platoons"],
["Items", _MenuPlatoons]
]
],
["FireTeams",
[
["Caption", "Operators"],
["Items",
[
[ ["Item", "RFL FireTeam [4]"], ["Action", "[player, 4,0] execVM 'Scripts\C3IS\X_FIRETEAM.sqf'"], ["Close", false] ],
[ ["Item", "GUN FireTeam [4]"], ["Action", "[player, 4,1] execVM 'Scripts\C3IS\X_FIRETEAM.sqf'"], ["Close", false] ],
[ ["Item", "ASLT FireTeam [4]"], ["Action", "[player, 4,2] execVM 'Scripts\C3IS\X_FIRETEAM.sqf'"], ["Close", false] ]
]
]
]
]
] + [_MenuInnerPlatoons];
_MenuStructureArray execVM "Dialogs\ICE.sqf";
http://pb.6thsense.eu/pb/92Everything works great, however it will not add the menus for "2","3","4"
IN the _MENUINNERPLATOONS, however it works for the _MenuPlatoons... why is this? (If anyone needs more info/demonstration/details then just ask).