Arma 3
ApexArcadian May 8, 2018 @ 12:23pm
How to add sound effects to objects
I'm building a scenario that involves alot of music and I wanted to make some speakers that played music, but all I could figure out was how to make a trigger that played music in the player's ear, not from an object.

NOTE: I am a semi-experienced coder, but I am a hardcore newbie in terms of the ArmA 3 coding/scripting language. I have basic abilities (e.g. "["params"] call BIS_fnc_Insert function to use;") but none of the advanced stuff.
Originally posted by IM SORRY BUFFALO:
if you didnt get it by now, i would just remoteExec say3D with the sound you want to make your life easier, playSound3D is to finiky for me and you said say3D already was working. this will give the same effect as playSound3D and it should follow the object as well
[objectName, ["soundName", 125, 1]] remoteExec ["say3d", 0, true];
< >
Showing 1-10 of 10 comments
IM SORRY BUFFALO May 8, 2018 @ 12:39pm 
playSound3D ["path\To\Sound", objectName];
ApexArcadian May 8, 2018 @ 12:42pm 
Originally posted by IM SORRY BUFFALO:
playSound3D ["path\To\Sound", objectName];
Thanks so much my dude.

do you happen to know the default path for music?
Last edited by ApexArcadian; May 8, 2018 @ 12:42pm
ApexArcadian May 8, 2018 @ 12:57pm 
Originally posted by EntityCrusher:
Originally posted by IM SORRY BUFFALO:
playSound3D ["path\To\Sound", objectName];
Thanks so much my dude.

do you happen to know the default path for music?


Nvm i found it
ApexArcadian May 8, 2018 @ 1:11pm 
Originally posted by EntityCrusher:
Originally posted by EntityCrusher:
Thanks so much my dude.

do you happen to know the default path for music?


Nvm i found it


ok so this is what i put in and it still didn't work:

playSound3D ["\x\alive\addons\intro\ArmA.ogg", _this];

i was trying to get a song from the Alive mod to play from a car (which was also modded). does it just not work with modded songs/object or is it a sytax thing im doing wrong here?
Last edited by ApexArcadian; May 8, 2018 @ 1:12pm
IM SORRY BUFFALO May 8, 2018 @ 1:14pm 
Originally posted by EntityCrusher:
Originally posted by EntityCrusher:


Nvm i found it


ok so this is what i put in and it still didn't work:

playSound3D ["\x\alive\addons\intro\ArmA.ogg", _this];

i was trying to get a song from the Alive mod to play from a car (which was also modded). does it just not work with modded songs/object or is it a sytax thing im doing wrong here?
if that is in the objects init, then _this should just but this. remove the underscore
ApexArcadian May 8, 2018 @ 1:16pm 
Originally posted by IM SORRY BUFFALO:
Originally posted by EntityCrusher:


ok so this is what i put in and it still didn't work:

playSound3D ["\x\alive\addons\intro\ArmA.ogg", _this];

i was trying to get a song from the Alive mod to play from a car (which was also modded). does it just not work with modded songs/object or is it a sytax thing im doing wrong here?
if that is in the objects init, then _this should just but this. remove the underscore

thanks again XD
IM SORRY BUFFALO May 8, 2018 @ 1:17pm 
Originally posted by EntityCrusher:
Originally posted by IM SORRY BUFFALO:
if that is in the objects init, then _this should just but this. remove the underscore

thanks again XD
if that doesnt work then its possibly the path unless your 100% sure its correct lol. ive never used this command before but it shoudl work, if not then try with a default sound such as "A3\Sounds_F\sfx\blip1.wav" and see if it works
ApexArcadian May 8, 2018 @ 1:20pm 
Originally posted by EntityCrusher:
Originally posted by IM SORRY BUFFALO:
if that is in the objects init, then _this should just but this. remove the underscore

thanks again XD

ok i have no clue what im doing wrong but it still won't work. I'm assuming i probably got the path wrong.
IM SORRY BUFFALO May 8, 2018 @ 1:21pm 
Originally posted by EntityCrusher:
Originally posted by EntityCrusher:

thanks again XD

ok i have no clue what im doing wrong but it still won't work. I'm assuming i probably got the path wrong.
try with "A3\Sounds_F\sfx\blip1.wav"
The author of this thread has indicated that this post answers the original topic.
IM SORRY BUFFALO May 10, 2018 @ 1:59pm 
if you didnt get it by now, i would just remoteExec say3D with the sound you want to make your life easier, playSound3D is to finiky for me and you said say3D already was working. this will give the same effect as playSound3D and it should follow the object as well
[objectName, ["soundName", 125, 1]] remoteExec ["say3d", 0, true];
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: May 8, 2018 @ 12:23pm
Posts: 10