[Release] Church heal

Did you place the .ogg file in your the zip folder to the root of your mission folder?
of course I've puted the .ogg file in the mission folder and specify the path in the description.ext properly, but in the game floating that the
cureEffect did'nt found.
First of all I thoght that { is missing in your code
Code:
class CfgSounds
//right here missing {//

    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};
I added it but it's still doesn't work (((
 
of course I've puted the .ogg file in the mission folder and specify the path in the description.ext properly, but in the game floating that the
cureEffect did'nt found.
First of all I thoght that { is missing in your code
Code:
class CfgSounds
//right here missing {//

    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};
I added it but it's still doesn't work (((
What happends if you go into a church and run it?
 
of course I've puted the .ogg file in the mission folder and specify the path in the description.ext properly, but in the game floating that the
cureEffect did'nt found.
First of all I thoght that { is missing in your code
Code:
class CfgSounds
//right here missing {//

    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};
I added it but it's still doesn't work (((
And can you post your code, so i can do a quick scan throught it
 
I have the media folder in my root mission folder and my .ogg in it. So the code is
Code:
class CfgSounds
    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={media\cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};
also I've tried this way with {
Code:
class CfgSounds
{
    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={media\cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};

but in the game the error floating that the cureEffect didn't found. Sound is not playing, but the character healing.
 
Last edited:
I have the media folder in my root mission folder and my .ogg in it. So the code is
Code:
class CfgSounds
    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={media\cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};
also I've tried this way with {
Code:
class CfgSounds
{
    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={media\cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};

but in the game the erorr floating that the cureEffect didn't found. Sound is not playing, but the character healing.
Ok i'll take a look at it .
 
thankz for this it works great.
if I wanted to add hospitols I would just add the name ??
Yes the fn_selfActions code would look like this
Code:
//-------------------------------Mergs Church cure-------------------------------------

private["_playerPos","_canCure"];
_playerPos = getPosATL player;
_canCure = count nearestObjects [_playerPos, ["Land_Church_01","Land_Church_03","Land_Church_02","Land_Church_02a","Land_A_Hospital"], 20] > 0;

if (_canCure) then {
if (s_church_cure < 0) then {
s_church_cure = player addaction[("<t color=""#FF0000"">" + ("Cure Infection") +"</t>"),"church_cure.sqf"];
};
} else {
player removeAction s_church_cure;
s_church_cure = -1;
};
//-----------------------------Mergs Church cure end-------------------------------------
 
Required to make the blur effect disappeared after a certain time. My players complain about the murky picture.
 
I am asking a question about the script code posted above, the sound path issue everyone is having a problem with.

Doesn't the path of the sound file need to be in quotes? Like this:
Code:
sound[]={"media\cure_effect.ogg",0.9,1};
 
I am asking a question about the script code posted above, the sound path issue everyone is having a problem with.

Doesn't the path of the sound file need to be in quotes? Like this:
Code:
sound[]={"media\cure_effect.ogg",0.9,1};
You try that, its working just fine for me how i have it...
 
Well if it is working for you then you solved the problem. I had just read the replies to this thread and posted a suggestion to help solve the issue.
 
Have this running but it seems to use the same scroll menu slot as lift/tow, stopping lift tow working.
 
Last edited:
I have this working great on my epoch taviana server but I cant get it working on my taviana server.
any issues with regular taviana 2.0 ??
 
I have this working great on my epoch taviana server but I cant get it working on my taviana server.
any issues with regular taviana 2.0 ??
The only problem that i can think of is something with the church class name. Im not sure, i haven't tried this on Tavi.
 
Back
Top