Arma 3
The Almighty Aug 22, 2016 @ 4:27am
Simple Earplugs script
Hello,

after searching forums for hours and hours on end, even some German forums, I've come up empty. I want to be able to use earplugs in a server I host to play with friends. It's nothing official as it is just a custom mission I made in the editor. I found the Simple Earplugs script over on armaholic (http://www.armaholic.com/page.php?id=26624) but I can't get it to work. After opening the PBO file and pasting it into my mpmission folder under my documents I pasted in the script as described on the above mentioned website. Now when I start up my mission it gives me an error pointing to "_this addAction sepa;" it expects an object but it gets an array. It gives the same error for the line below this "_this addEventHandler ["Respawn"..."

I don't know how to fix this and I didn't know where to post this either. So if anyone can help me out, please let me know. Thank you.
< >
Showing 1-14 of 14 comments
try youtube
[40-1]King_Kosher Aug 22, 2016 @ 8:06am 
Originally posted by HolyBajezus:
...I can't get it to work. After opening the PBO file and pasting it into my mpmission folder under my documents I pasted in the script as described on the above mentioned website.
The installation instructions are very,very clear on this one. It only asks for you to include the SCRIPTS folder that you find in the archive to be placed in YOUR mission-folder and add "player execVM "scripts\simpleEP.sqf";"
to your init.sqf. Thats it, the earplugs are included in your mission now.

The PBO that is inside the archive is only a simple testmission to show off the features/items and does not need to be de-PBO´d. You can throw it in your MPMissions folder to test it or delete it
Last edited by [40-1]King_Kosher; Aug 22, 2016 @ 8:07am
Hey I'm at school right now but when I get home I can provide you with a working earplug script I use.
The Almighty Aug 22, 2016 @ 9:55am 
Originally posted by 40-1King_Kosher:
Originally posted by HolyBajezus:
...I can't get it to work. After opening the PBO file and pasting it into my mpmission folder under my documents I pasted in the script as described on the above mentioned website.
The installation instructions are very,very clear on this one. It only asks for you to include the SCRIPTS folder that you find in the archive to be placed in YOUR mission-folder and add "player execVM "scripts\simpleEP.sqf";"
to your init.sqf. Thats it, the earplugs are included in your mission now.

The PBO that is inside the archive is only a simple testmission to show off the features/items and does not need to be de-PBO´d. You can throw it in your MPMissions folder to test it or delete it

Sorry but I see now that I wasn't clear enough on that. I do not actually use the PBO that comes with the script, instead, I was talking about the PBO for my own mission under MPmissions in the install directory
The Almighty Aug 22, 2016 @ 10:01am 
Originally posted by chasEE:
Hey I'm at school right now but when I get home I can provide you with a working earplug script I use.

That would be much appreciated
[40-1]King_Kosher Aug 22, 2016 @ 11:11am 
Originally posted by HolyBajezus:
Sorry but I see now that I wasn't clear enough on that. I do not actually use the PBO that comes with the script, instead, I was talking about the PBO for my own mission under MPmissions in the install directory
Ahh,alright,that changes the situation a bit. In that case,you should check the line in which the error occurs in the script (tells you that while displaying the "got X expected Y" error message) and see whats wrong with it. Maybe a missing semicolon or something else.
If you can upload the mission folder to Mediafire or something,people can take a look and see whats up, even if chasEE gives you a working script in the end. It helps getting better at scripting
Would you like the script to be addaction or keybind? If keybind what key?
The Almighty Aug 22, 2016 @ 12:49pm 
Originally posted by chasEE:
Would you like the script to be addaction or keybind? If keybind what key?

I would love to have it bound to me END key like in Wasteland servers
The Almighty Aug 22, 2016 @ 1:19pm 
Originally posted by 40-1King_Kosher:
Originally posted by HolyBajezus:
Sorry but I see now that I wasn't clear enough on that. I do not actually use the PBO that comes with the script, instead, I was talking about the PBO for my own mission under MPmissions in the install directory
Ahh,alright,that changes the situation a bit. In that case,you should check the line in which the error occurs in the script (tells you that while displaying the "got X expected Y" error message) and see whats wrong with it. Maybe a missing semicolon or something else.
If you can upload the mission folder to Mediafire or something,people can take a look and see whats up, even if chasEE gives you a working script in the end. It helps getting better at scripting

I'll do this tomorrow and link it here when I've done so since it's quite late where I live. Thanks for the suggestion!
Im not sure if it will remove the link (link is dropbox) but here is the script:

Script: https://www.dropbox.com/s/4mx05dclgm3lsq2/Earplug_Script.zip?dl=1

Instructions are in the download as well as an example mission.
If you encounter any problems, just mention it on here and I will help you!

Enjoy!
By the way the script uses event handlers, so even after respawn you will still have the end key binded to earplugs
The Almighty Aug 23, 2016 @ 6:04am 
Originally posted by chasEE:
Im not sure if it will remove the link (link is dropbox) but here is the script:

Script: https://www.dropbox.com/s/4mx05dclgm3lsq2/Earplug_Script.zip?dl=1

Instructions are in the download as well as an example mission.
If you encounter any problems, just mention it on here and I will help you!

Enjoy!

Works like an absolute charm! You're a life saver man! I can't thank you enough
The Almighty Aug 23, 2016 @ 6:06am 
Originally posted by 40-1King_Kosher:
Originally posted by HolyBajezus:
Sorry but I see now that I wasn't clear enough on that. I do not actually use the PBO that comes with the script, instead, I was talking about the PBO for my own mission under MPmissions in the install directory
Ahh,alright,that changes the situation a bit. In that case,you should check the line in which the error occurs in the script (tells you that while displaying the "got X expected Y" error message) and see whats wrong with it. Maybe a missing semicolon or something else.
If you can upload the mission folder to Mediafire or something,people can take a look and see whats up, even if chasEE gives you a working script in the end. It helps getting better at scripting

Here are my files:

https://www.dropbox.com/sh/exrvqnqc13q8lbb/AACIu47iPpJmUYesOqx6r26qa?dl=0

The AltisJetOps is the one with the script from chasEE and the HeliBattle is a mess of bundled scritps that don't work haha
💛Kohath Apr 8, 2017 @ 7:26pm 
Originally posted by chasEE:
Im not sure if it will remove the link (link is dropbox) but here is the script:

Script: https://www.dropbox.com/s/4mx05dclgm3lsq2/Earplug_Script.zip?dl=1

Instructions are in the download as well as an example mission.
If you encounter any problems, just mention it on here and I will help you!

Enjoy!
Hey man, I tried to add your script to a "Escape Tanoa" mission from Steam workshop but it doesn`t seemt to work. Is it possibly outdated?
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Aug 22, 2016 @ 4:27am
Posts: 14