Phantom-Pain
New Member
Can someone please help me. I been looking for a earplugs script for Arma 2 Dayz Overpoch and can't find one. I have seen them on several servers and wanted to try it on mine.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//0x16 = letter U
if (_dikCode == 0x16) then {
execVM "scripts\earplugs.sqf";
};
if (isnil "var_earplugs") then {
var_earplugs= false;
};
if (!var_earplugs) then {
1 fadeSound 0.1;
1 fadeMusic 0.1;
var_earplugs = true;
systemchat 'You have put Earplugs in!';
} else {
1 fadeSound 1;
1 fadeMusic 1;
var_earplugs = false;
systemchat 'You have taken out your Earplugs!';
};
I tried it but it didn't work. Can you please give me some simple instructions on how to make this work. I am still a noob at installing scripts if they don't come with instructions. Thank you.
In your compiles.sqf do you see dayz_spaceInterrupt.sqf at all?Yes but its in a custom folder. I forgot what script it came with. This is how its setup:
![]()
![]()
Change
dayz_spaceInterrupt = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\dayz_spaceInterrupt.sqf";
dayz_spaceInterrupt = compile preprocessFileLineNumbers "custom\dayz_spaceInterrupt.sqf";
I have infistar as well and it works just fine. Can you link your mission pbo and I'll take a look? You press the U key to toggle the action.I just tried that also but it still didn't work. I am guessing some other script is blocking this script from working. I do have infistar installed. Could that be the reason why its not working?
hi
i add the scrip to my dayz_spaceInterrupt.sqf and made the earplug.sqf but still wound work.
do you need to add the u key to a custom key
yes i already have a dayz_spaceinterrup.sqf in it that im using for other addonsDid you edit the compiles.sqf?