rentiger1112 Posted September 7, 2015 Report Share Posted September 7, 2015 So I saw these awesome earplugs.paa and was wondering if someone could help me get it to work where In dayz_spaceinterrupt i define a button and when pressed this icon comes up and the sound is quiter? Link to comment Share on other sites More sharing options...
1 syco Posted October 18, 2015 Report Share Posted October 18, 2015 Edit your description.ext. Be sure RscStructuredText is inside your Define.hpp. Be sure to change the paths as you see i got them "Path\To\FileName" as a example#include "Path\To\defines.hpp" class RscTitles { class EarPlugs { idd = -1; fadeout=0; fadein=0; onLoad = "uiNamespace setVariable ['EarPlugs', _this select 0]"; duration = 10e10; name= "EarPlugs"; controlsBackground[] = {}; objects[] = {}; class controls { class EarPlugs : RscStructuredText{ idc = 1; size = 0.040; text = ""; colorBackground[] = { 0,0,0,0 }; x = 0.85 * safezoneW + safezoneX; y = 0.91 * safezoneH + safezoneY; w = 0.2; h = 0.2; }; }; }; }; Edit your dayz_spaceInterrupt.sqf. Add this code right below the // Disable ESC after death block of codeif (_dikCode == 0x16) then { if (isNil 'EARPLUGS') then { EARPLUGS = false; }; EARPLUGS = !EARPLUGS; if (EARPLUGS) then { 1 fadeSound 0.25; ((uiNamespace getVariable "EarPlugs") displayCtrl 1) ctrlSetStructuredText parseText "<t size='4' align='right' valign='middle'><img image='Path\To\earplugs.paa' /></t>"; } else { 3 fadeSound 1; ((uiNamespace getVariable "EarPlugs") displayCtrl 1) ctrlSetStructuredText parseText ""; }; }; Edit to your init.sqf. Add this inside the if (!isDedicated) then block of code. [] spawn { waitUntil { sleep 1; !isNil ("PVDZE_plr_LoginRecord") }; 6 cutRsc ["EarPlugs", "PLAIN"]; }; Now all you need to do is get the earplugs.paa. theduke 1 Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted September 9, 2015 Author Report Share Posted September 9, 2015 bump? Link to comment Share on other sites More sharing options...
0 syco Posted September 10, 2015 Report Share Posted September 10, 2015 This looks like its off my server. Same icon and same spot on the screen. Are you trying to rip code/files out of my PBO's? Maybe if you ask me and not try to get others to help you to get something to work that you got off another server i might give you the right code to make this work. Link to comment Share on other sites More sharing options...
0 theduke Posted September 10, 2015 Report Share Posted September 10, 2015 (edited) you know i would be interested in this if you dont mind sharing :) I have a few little goodies too loli have the earplugs already....just the icon would be awesome :) Edited September 10, 2015 by theduke Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted September 10, 2015 Author Report Share Posted September 10, 2015 well since you mentioned it if your the owner of Deadcell I think it is then yes. With your permission I would like to use this! Link to comment Share on other sites More sharing options...
0 Akku14 Posted September 11, 2015 Report Share Posted September 11, 2015 (edited) hello everyone@syco I am using dayz_spaceinterrupt.sqf to turn down the volume to 0.25 when a key is pressed can we run a script that shows icon of headphones Edited September 11, 2015 by Akku14 Link to comment Share on other sites More sharing options...
0 Akku14 Posted September 12, 2015 Report Share Posted September 12, 2015 Can we use RscPicture or RscTitles for that ? Link to comment Share on other sites More sharing options...
0 theduke Posted September 13, 2015 Report Share Posted September 13, 2015 This looks like its off my server. Same icon and same spot on the screen. Are you trying to rip code/files out of my PBO's? Maybe if you ask me and not try to get others to help you to get something to work that you got off another server i might give you the right code to make this work.looks like he doesnt want to share... Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted October 16, 2015 Author Report Share Posted October 16, 2015 bump? Link to comment Share on other sites More sharing options...
0 zeppo Posted October 20, 2015 Report Share Posted October 20, 2015 Thanks syco! Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted October 23, 2015 Author Report Share Posted October 23, 2015 Much appreciation syco! if anyone asks who made it ill be sure to give credit where it is due! Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted October 23, 2015 Author Report Share Posted October 23, 2015 player removeAction s_clothes;s_clothes = -1;player remove> Error position: <s_clothes;s_clothes = -1;player remove> Error Undefined variable in expression: s_clothesFile mpmissions\__CUR_MP.chernarus\dayz_code\Compile\fn_selfActions.sqf, line 1281Warning Message: Resource title EarPlugs not found Link to comment Share on other sites More sharing options...
0 syco Posted October 23, 2015 Report Share Posted October 23, 2015 Be sure RscStructuredText is inside your Define.hppBe sure you #include your defines before RscTitles in description.ext.Post your description.ext, Define.hpp, dayz_spaceInterrupt.sqf and init.sqf around the code that needed to be edited for this script. Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted October 23, 2015 Author Report Share Posted October 23, 2015 https://mega.nz/#!S8NVBBbA!-ZZr5WHV6N0tUeCxt94ZGyLROMAitgxBo9hd2lz65R8 Link to comment Share on other sites More sharing options...
0 rentiger1112 Posted October 24, 2015 Author Report Share Posted October 24, 2015 might be better if I gave you my missionside shit: https://mega.nz/#!X8ECkYKA!i0qvbTKH-A8nrg8tLtZVS80V6h6OwmpfLzMMUFbSOfo Link to comment Share on other sites More sharing options...
Question
rentiger1112
So I saw these awesome earplugs.paa and was wondering if someone could help me get it to work where In dayz_spaceinterrupt i define a button and when pressed this icon comes up and the sound is quiter?
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now