Kommunikationsmenü geht so:
PHP-Code:
sleep 2;
If (isNil "BIS_MENU_GroupCommunication") then {
BIS_MENU_GroupCommunication = [
[localize "STR_SOM_COMMUNICATIONS", false]
];
};
waituntil {!isnil "BIS_MENU_GroupCommunication"};
CUSTOM_menu = [
["Menu",false],
["Item 1",[2],"",-5,[["expression","hint 'Hello!'"]],"1","1"],
["Item 2",[3],"",-5,[["expression","[] execVM 'myScript.sqf'"]],"1","0"]
];
_count = count BIS_MENU_GroupCommunication;
BIS_MENU_GroupCommunication set [_count, ["Test",[_count + 1],"#USER:CUSTOM_menu",-5,[["expression",""]],"1","1"]];
=>
Comms and Custom menues - Bohemia Interactive Forums
Den oberen Teil hab ich noch hinzugefügt, damit es auch mit dem SpecOp / Einfachen Unterstützungsmodul Modul funktioniert.