Smokies Stash
New Member
Looking for some help with this script, Menus are showing but scripts arnt executed when the options are selected. here it is
Dock.Sqf
if (isServer) exitwith {};
waitUntil {sleep 2; count vehicles > 1};
sleep 10;
{
If (typeOf _x in ["RHIB2Turret","RHIB","Zodiac","PBX"]) then {
_Smokie = _x addAction [("<t color=""#2bc0a7"">Boat Options</t>"),"LHD\Options\Options.sqf","boat",1,false,true,"","driver _target == player"];
};
}forEach (vehicles);
Above gives the scroll option "Boat Options", works fine, once clicked on it displays Options.Sqf which is -
private["_420","_THC"];
_420 = "LHD\option\";
_THC = 'player execVM "'+_420+'%1"';
Smokie =
[
["",true],
["Dock", [2], "", -5, [["expression", format[_THC,"launch1.sqf"]]], "1", "1"],
["Launch", [3], "", -5, [["expression", format[_THC,"launch.sqf"]]], "1", "1"],
["", [-1], "", -5, ["expression", ""], "1", "0"],
["Exit", [13], "", -3, ["expression", ""], "1", "1"]
];
showCommandingMenu "#USER:Smokie";
"Dock" and "Launch" are showing in the Scroll Menu but they are not executing the scripts once they are selected.
(Oh "Exit" isnt showing in the scroll menu aswell)
If anyone could lend a hand with this it would be muchly appriciated
Dock.Sqf
if (isServer) exitwith {};
waitUntil {sleep 2; count vehicles > 1};
sleep 10;
{
If (typeOf _x in ["RHIB2Turret","RHIB","Zodiac","PBX"]) then {
_Smokie = _x addAction [("<t color=""#2bc0a7"">Boat Options</t>"),"LHD\Options\Options.sqf","boat",1,false,true,"","driver _target == player"];
};
}forEach (vehicles);
Above gives the scroll option "Boat Options", works fine, once clicked on it displays Options.Sqf which is -
private["_420","_THC"];
_420 = "LHD\option\";
_THC = 'player execVM "'+_420+'%1"';
Smokie =
[
["",true],
["Dock", [2], "", -5, [["expression", format[_THC,"launch1.sqf"]]], "1", "1"],
["Launch", [3], "", -5, [["expression", format[_THC,"launch.sqf"]]], "1", "1"],
["", [-1], "", -5, ["expression", ""], "1", "0"],
["Exit", [13], "", -3, ["expression", ""], "1", "1"]
];
showCommandingMenu "#USER:Smokie";
"Dock" and "Launch" are showing in the Scroll Menu but they are not executing the scripts once they are selected.
(Oh "Exit" isnt showing in the scroll menu aswell)
If anyone could lend a hand with this it would be muchly appriciated