ExclamationHelpNeed help with adding 2 different menus with 2 different binds.

Posts 13 of 3 · Page 1 of 1
Dayz SA Need help with adding 2 different menus with 2 different binds.
My friend sent me a script ant it only has one menu, and I have a script that i want to use so i want to combine them but have them keep their own different key binds like say one menu is binded to {End}, and the other is binded to {n}. could someone tell me how?

- - - Updated - - -

Can anyone help?
Quote Originally Posted by slashx24 View Post
My friend sent me a script ant it only has one menu, and I have a script that i want to use so i want to combine them but have them keep their own different key binds like say one menu is binded to {End}, and the other is binded to {n}. could someone tell me how?

- - - Updated - - -

Can anyone help?

Yea sure just read this very closely, Btw sorry for bad english norway here x
I know this is for arma 2 but it should work for DayZ Standalone well atleast my friend made it to work for him
Hope this works for you!
make sure that the script you execute to start the menu have for example: execVM "\YourFolderName\Bindings.sqf";

Like this



Here is the code:

// Edit the sentence: execVM "\PRaZ\scripts\unlock.sqf"; To execVM "\YourFolderName\YourSript.sqf";

if (!isnil "keypress_xxx") then
{
(findDisplay 46) displayRemoveEventHandler ["KeyDown", keypress_xxx];
};

keybindings_xxx =
{
switch (_this) do
{
case 83: //Numpad ,
{
execVM "\PRaZ\scripts\unlock.sqf";
};
case 2: //Zahl 1
{
execVM "\PRaZ\scripts\tp.sqf";
};
case 3: //Zahl 2
{
execVM "\PRaZ\scripts\del.sqf";
};
case 4: //Zahl 3
{
execVM "\PRaZ\_for_keybinds\explode_cursorTarget.sqf" ;
};
case 5: //Zahl 4
{
_vehicle = (vehicle player);
_vel = velocity _vehicle;
if ((vehicle player)==player) then
{
_vehicle setVelocity [(_vel select 0),(_vel select 1),5];
}
else
{
_vehicle setVelocity [(_vel select 0),(_vel select 1),20];
};
};
case 6: //Zahl 5
{
execVM "\PRaZ\scripts\teleport.sqf";
};
case 7: //Zahl 6
{
execVM "\PRaZ\scripts\heal.sqf";
};
Yea but i have an older script i just dont understand how he had it this way. when you hit alt a menu pops up, then hit n its a different menu. How do i know its binded to alt or n
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?