natanbrody 10 Posted August 5, 2013 I am trying to make a alarm that is in a certain position so that it will fade out when you move away from it. There is a very simple expression in the Editor for it I just forgot what it was (it was something like setPos?..?) Share this post Link to post Share on other sites
kylania 568 Posted August 5, 2013 There is an alarm sound object. Maybe just spawn that where you want? Share this post Link to post Share on other sites
natanbrody 10 Posted August 5, 2013 Ok but is there a way to change the sound effect and make it activate on a if blufor detected trigger? Share this post Link to post Share on other sites
mrflay 4 Posted August 5, 2013 You can also try: Create new trigger with activation "BLUFOR" Click "Effects" button in trigger config (next to the "OK" button) Select "Alarm" in the Trigger dropdown list. Custom sounds can be added by editing description.ext. Eg. // description.ext class CfgSfx { class FOO_MyAlarm { sounds[] = {"sound1"}; name = "My Alarm"; sound1[] = {"sfx\myalarm.ogg",1.0,1,400,1,0.0,0.0,0.0}; empty[] = {"",0,0,0,0,0,0,0}; }; }; Provided myalarm.ogg is placed under "sfx" folder in mission folder. Share this post Link to post Share on other sites
natanbrody 10 Posted August 5, 2013 I have tried that but you can hear the alarm even if your on the opposite side of the map i want it to be so that if your far away you hear it fainter Share this post Link to post Share on other sites
kylania 568 Posted August 5, 2013 Using mrflay's example did you use it as Anonymous or Voice for the trigger effects dropdown? You'd want to use Voice. Share this post Link to post Share on other sites
natanbrody 10 Posted August 5, 2013 I Have just tried your idea. The voice thing works great but it doesn't seem to work if I set it as Blufor Detected by Opfor.... Where do I go from now? Share this post Link to post Share on other sites
Kommiekat 12 Posted September 27, 2013 I'm trying to do a similar thing with a RADIO placed on the map. I've had success with A2 but not getting it to work with A3, as of yet. I'm using a Trigger for this. (Do I need a trigger?): Name: trgMusic None Once Present Cond: True On Act: trgMusic attachTo [RADIO,[0,0,1]]; If I place a radio and get it positioned on a table, I name it RADIO. I place the radio sound file in music folder named Music. CfgMusic class CfgMusic { tracks[]={radio}; class singing { name = "radio"; Sound[] = {\Music\radio.ogg, db+0, 1.0}; }; }; Effects on trigger shows it in: TRACK When radio sound file is placed in Sounds folder: CgfSFX // ====================== // class CfgSFX related // ====================== class CfgSFX { class EasternEggs { sounds[] = {"sound1"}; name = "radio"; sound1[] = {"Sounds\radio.ogg", 2.51189, 1, 20, 1, 0.0, 0.0, 0.0}; empty[] = {"", 0, 0, 0, 0, 0, 0, 0}; }; }; Effects shows it to be in: TRIGGER VOICE is showing my Music file but not Sounds file. Would the radio file be placed in Sounds folder or Music folder? Anything wrong with my code? Share this post Link to post Share on other sites