higgibaby Posted April 3, 2015 Report Share Posted April 3, 2015 Hey! Is it possible to code Earplugs for Epoch like that Script? Does anyone have an idea how I implement that script into Arma2 OA / Epoch? Regards, higgi! Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted April 3, 2015 Report Share Posted April 3, 2015 Maybe you can get this to work? http://www.armaholic.com/page.php?id=26624 Link to comment Share on other sites More sharing options...
higgibaby Posted April 3, 2015 Author Report Share Posted April 3, 2015 I know that Script! Thx! I linked it in my Post, above. I had tested it and wanted to solved my RPT-Errors, but then I had more and more errors. I can implementet scripts, but i can`t scripting! Can somebody translate that script into Arma2 (or help me)? Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted April 4, 2015 Report Share Posted April 4, 2015 I know that Script! Thx! I linked it in my Post, above. I had tested it and wanted to solved my RPT-Errors, but then I had more and more errors. I can implementet scripts, but i can`t scripting! Can somebody translate that script into Arma2 (or help me)? Sorry about that. I didn't click on the link. I had assumed it was a link to the A3 Epoch ear plug script. I didn't even notice that was an Arma 3 script! Link to comment Share on other sites More sharing options...
seelenapparat Posted April 4, 2015 Report Share Posted April 4, 2015 I made an earplugs script for our server. just do the following: 1. in your fn_selfactions.sqf (I'll put it directly between DZE_HeliLift && DZE_HaloJump) if (_inVehicle && (_vehicle isKindOf "Air") && (!Earplugs)) then { if (s_player_put_earplugs_on < 0) then { airvehicle = _vehicle; s_player_put_earplugs_on = airvehicle addAction ["Earplugs on","custom\earplugs_on.sqf","",5,false,true]; }; } else { if (!isNil "airvehicle") then { airvehicle removeAction s_player_put_earplugs_on; s_player_put_earplugs_on = -1; }; }; if (_inVehicle && (_vehicle isKindOf "Air") && (Earplugs)) then { if (s_player_put_earplugs_off < 0) then { airvehicle = _vehicle; s_player_put_earplugs_off = airvehicle addAction ["Earplugs off","custom\earplugs_off.sqf","",5,false,true]; }; } else { if (!isNil "airvehicle") then { airvehicle removeAction s_player_put_earplugs_off; s_player_put_earplugs_off = -1; }; }; 2. earplugs_on.sqf (just a note: I made it so that when a player leaves the vehicle, the earplugs go off automaticly. you can take that part out if you dont want that. if so, delete everything from waituntil to the end.) private []; Earplugs = true; 1 fadeSound 0.2; titleText [format["Earplugs are on"], "PLAIN DOWN"]; waituntil {vehicle player == player}; if (true) then { Earplugs = false; 1 fadeSound 1; }; 3. earplugs_off.sqf private []; Earplugs = false; 1 fadeSound 1; titleText [format["Earplugs are off"], "PLAIN DOWN"]; 4. in your variables.sqf, where all other variables get initialized put this: s_player_put_earplugs_on = -1; s_player_put_earplugs_off = -1; and in the same file at the bottom: //earplugs init Earplugs = false; hope it helps. could be done better I think. but Im still learning. :) Gr8 1 Link to comment Share on other sites More sharing options...
higgibaby Posted April 4, 2015 Author Report Share Posted April 4, 2015 @ BetterDeadThanZed: No problem; also my fault. Next time I make that more apparent! @ seelenapparat: Thank you very much for your answer! That's exactly what I imagine. But it will not work on my server and I got no RPT-errors, unhappily! If I set "Earplugs = true;" it should be work, isn`t it? Do not care, I tested both! Serverinfo: I use "Oripoch" without InfiStar. Possibly there is a conflict on my Server! In addition I get no messages like "Earplugs on" or something like that. Could it be a scriptstarting problem? Regards, higgi! Link to comment Share on other sites More sharing options...
seelenapparat Posted April 4, 2015 Report Share Posted April 4, 2015 check your client rpt log. also, earplugs must be set to false in the variables init. as it will be set to true when earplugs are enabled via scrollmenu. Link to comment Share on other sites More sharing options...
higgibaby Posted April 4, 2015 Author Report Share Posted April 4, 2015 My RPT is clean. Without Errors! It do not work ... hmmm I attached my added files ... custom.zip Link to comment Share on other sites More sharing options...
seelenapparat Posted April 4, 2015 Report Share Posted April 4, 2015 will check it, when Im back home. Link to comment Share on other sites More sharing options...
higgibaby Posted April 4, 2015 Author Report Share Posted April 4, 2015 OK. Thx! Link to comment Share on other sites More sharing options...
seelenapparat Posted April 4, 2015 Report Share Posted April 4, 2015 I updated the instructions, try again. shuld work, as it does on my server. Link to comment Share on other sites More sharing options...
higgibaby Posted April 4, 2015 Author Report Share Posted April 4, 2015 Yihaaa! It works, now! Great work, great Script! Silent traveling, now! :) Thank you very much! Link to comment Share on other sites More sharing options...
seelenapparat Posted April 4, 2015 Report Share Posted April 4, 2015 good to hear that :) its way better, when you can control the volume in a heli or plane. Link to comment Share on other sites More sharing options...
higgibaby Posted April 4, 2015 Author Report Share Posted April 4, 2015 good to hear that :) its way better, when you can control the volume in a heli or plane. Yes, it is! :) Edit: Normally it should worked without "private [];", isn`t it? I don`t know why that line must be added. Although there is nothing configured! Link to comment Share on other sites More sharing options...
RylanGivens Posted April 16, 2015 Report Share Posted April 16, 2015 and in the same file at the bottom: //earplugs init Earplugs = false; Where at bottom should it be placed? As the last text in the file or within something? Followed the steps and cant get it to work. Link to comment Share on other sites More sharing options...
seelenapparat Posted April 16, 2015 Report Share Posted April 16, 2015 in your variables.sqf directly at the bottom. :) RylanGivens 1 Link to comment Share on other sites More sharing options...
RylanGivens Posted April 16, 2015 Report Share Posted April 16, 2015 Thank you :) Would it be posible to make it so ear plugs would work in all vehicles or just at anytime you want? Having earplugs in helis are so much better and would be nice to have it in other vehicles too.. Link to comment Share on other sites More sharing options...
seelenapparat Posted April 17, 2015 Report Share Posted April 17, 2015 yes, you just have to replace the part in fn_selfactions.sqf that says: if (_inVehicle && (_vehicle isKindOf "Air") && (!Earplugs)) then { with if (_inVehicle && (_vehicle isKindOf "AllVehicles") && (!Earplugs)) then { Link to comment Share on other sites More sharing options...
RylanGivens Posted April 17, 2015 Report Share Posted April 17, 2015 Thank you so much :) Its really a nice little script.. Thanks for sharing :) Link to comment Share on other sites More sharing options...
Dodgyuk Posted May 3, 2015 Report Share Posted May 3, 2015 thanks nice script works a treat very easy to implement for u noobs :) Link to comment Share on other sites More sharing options...
Yugotz2baNagR Posted June 30, 2015 Report Share Posted June 30, 2015 can someone plz tell me where to put the earplugs.sqf files? Link to comment Share on other sites More sharing options...
ElDubya Posted June 30, 2015 Report Share Posted June 30, 2015 If you are using this one : The changes noted go in your dayz_spaceinterrupt.sqf. If you are using this one : Just follow the instructions? Link to comment Share on other sites More sharing options...
Yugotz2baNagR Posted June 30, 2015 Report Share Posted June 30, 2015 If you are using this one : Just follow the instructions? I'm using the second one Do i put all 3 sqf's in the fn_selfactions.sqf or do i make two separate files for the earplugs_.sqf ? And if so where do i put the two files at? Link to comment Share on other sites More sharing options...
ElDubya Posted July 1, 2015 Report Share Posted July 1, 2015 Do the fn_selfActions.sqf part then make two seperate files, one called earplugs_on.sqf (copy the code given for this) and one called earplugs_off.sqf (copy the code given for this) then put both of those into your missions "custom" folder. Do the variables.sqf part and you're done. (Or just use the top earplugs script, it's a hell of a lot simpler for pretty much the same thing) :) Link to comment Share on other sites More sharing options...
Yugotz2baNagR Posted July 1, 2015 Report Share Posted July 1, 2015 thanks thats what i needed Link to comment Share on other sites More sharing options...
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 accountSign in
Already have an account? Sign in here.
Sign In Now