Jump to content
  • 0

Adding knockout option into action menu


FragZ

Question

I am using WPD's action menu and I would like to add a knockout script to it.

This is my setup for my help documents which I added to the main action menu part (where I want the knockout).

 

pathtoscripts = "actionmenu\tools\";
pathtocolors = "actionmenu\sky\";
pathtofog = "actionmenu\fog\";
EXECscript1 = 'player execVM "'+pathtoscripts+'%1"';
EXECscript2 = 'player execVM "'+pathtocolors+'%1"';
EXECscript4 = 'player execVM "'+pathtofog+'%1"';


if ((getPlayerUID player) in ["77400390","121215046","32197254","39381702","113443014","6377280","152219206","145959430","86258438","83357510"]) then {
Actionmenu =
[
	["",true],
		["Action Menu", [2], "#USER:ActionMenua", -5, [["expression", ""]], "1", "1"],
		["Graphic Menu", [3], "#USER:SkyMenu", -5, [["expression", ""]], "1", "1"],
		["View Distance (Fog)", [4], "#USER:FogMenu", -5, [["expression", ""]], "1", "1"],
		["Help documents *UPDATED DAILY*", [5],  "", -5, [["expression", format[EXECscript1,"help.sqf"]]], "1", "1"],
		["", [-1], "", -5, [["expression", ""]], "1", "0"],
			["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];} else {
ActionMenu =
[
	["",true],
		["Action Menu", [2], "#USER:ActionMenua", -5, [["expression", ""]], "1", "1"],
		["Graphic Menu", [3], "#USER:SkyMenu", -5, [["expression", ""]], "1", "1"],
		["View Distance (Fog)", [4], "#USER:FogMenu", -5, [["expression", ""]], "1", "1"],
		["Help documents *UPDATED DAILY*", [5],  "", -5, [["expression", format[EXECscript1,"help.sqf"]]], "1", "1"],	
            ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
};

ActionMenua =
[
	["",true],
		["Flip Vehicle", [2],  "", -5, [["expression", format[EXECscript1,"flipvehicle.sqf"]]], "1", "1"],
		["Self Bloodbag", [3],  "", -5, [["expression", format[EXECscript1,"bloodbag.sqf"]]], "1", "1"],
		["Suicide", [3],  "", -5, [["expression", format[EXECscript1,"suicide.sqf"]]], "1", "1"],
		["Deploy Bike", [4],  "", -5, [["expression", format[EXECscript1,"bike.sqf"]]], "1", "1"],
		["Deploy Motorcycle", [5],  "", -5, [["expression", format[EXECscript1,"motor.sqf"]]], "1", "1"],
		["Deploy Gyrocopter", [6],  "", -5, [["expression", format[EXECscript1,"gyro.sqf"]]], "1", "1"],
		["Pack Created Vehicle", [7],  "", -5, [["expression", format[EXECscript1,"pack.sqf"]]], "1", "1"],	
		["", [-1], "", -5, [["expression", ""]], "1", "0"],
			["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

I believe by adding a knockout script (which I don't have that's why I am making this topic) and a path to it in the main part of the action menu

 

ActionMenu =
[
	["",true],
		["Action Menu", [2], "#USER:ActionMenua", -5, [["expression", ""]], "1", "1"],
		["Graphic Menu", [3], "#USER:SkyMenu", -5, [["expression", ""]], "1", "1"],
		["View Distance (Fog)", [4], "#USER:FogMenu", -5, [["expression", ""]], "1", "1"],
		["Help documents *UPDATED DAILY*", [5],  "", -5, [["expression", format[EXECscript1,"help.sqf"]]], "1", "1"],	
            ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

Would something like this work? added below help documents
["Knock target out*", [6], "", -5, [["expression", format[EXECscript1,"knockout.sqf"]]], "1", "1"],

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...