OhI had one in my old module, but according to the script it does have sounds attached:
void main()
{
string sSound1 = GetLocalString(OBJECT_SELF, "CEP_L_SOUND1");
string sSound2 = GetLocalString(OBJECT_SELF, "CEP_L_SOUND2");
if (GetLocalInt(OBJECT_SELF,"CEP_L_AMION") == 0)
{
object oSelf = OBJECT_SELF;
PlaySound(sSound1);
DelayCommand(0.1, PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
SetLocalInt(OBJECT_SELF,"CEP_L_AMION",1);
}
else
{
object oSelf = OBJECT_SELF;
PlaySound(sSound2);
DelayCommand(0.1, PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
SetLocalInt(OBJECT_SELF,"CEP_L_AMION",0);
}
}
ty this:
void main()
{
string sSound1 = GetLocalString(OBJECT_SELF, "as_cv_ropepully");
string sSound2 = GetLocalString(OBJECT_SELF, "c_spiker_dead");
if (GetLocalInt(OBJECT_SELF,"CEP_L_AMION") == 0)
{
object oSelf = OBJECT_SELF;
PlaySound(sSound1);
DelayCommand(0.1, PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
SetLocalInt(OBJECT_SELF,"CEP_L_AMION",1);
}
else
{
object oSelf = OBJECT_SELF;
PlaySound(sSound2);
DelayCommand(0.1, PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
SetLocalInt(OBJECT_SELF,"CEP_L_AMION",0);
}
}
Ok I think I figured it out zep on/off is the generic name of the script, you have to put in the sounds and then saveas, change the name to guillotine or something like that.
Modifié par ffbj, 22 août 2011 - 12:53 .