Game Modding | Call of Duty: Black Ops 3 | Scripting
Pepergogo:
Hi, so I've a custom script and I'm trying to play a sound when you touch the trigger_multiple, the thing is, it just make the other functions except for play a sound
Anyone know what can I do to fix it? :(
Dorp:
Is the sound set up properly in the script and in audacity?
Pepergogo:
Is the sound set up properly in the script and in audacity?
Dorp:
Is your new sound in your user_aliases.csv or a different file?
tmk_boi:
is it in your user aliases?
tmk_boi:
maybe put the player playsound before the spawn zombie?
Pepergogo:
I'm using the script from a function, so is:
function main(){
thread boss_fight
...
}
And then at the bottom the script I post.
I also try putting at the end of the main function but still nothing.
And yeah, I'm usign music.csv, is where I have all the songs and they work fine, is just the script who doesn't play it :(
Dorp:
I'm thinking it has something to do with your mapname.szc file located at usermaps/zm_mapname/sound/zoneconfig. Is the alias set up correctly within this file?
Pepergogo:
I'm thinking it has something to do with your mapname.szc file located at usermaps/zm_mapname/sound/zoneconfig. Is the alias set up correctly within this file?
Dorp:
Try using a different sound from your alias in the script to see if it works. That'll tell you if it's the script or the sound that has the issue.
Pepergogo:
Try using a different sound from your alias in the script to see if it works. That'll tell you if it's the script or the sound that has the issue.
Drae77:
Try this :
Pepergogo:
Try this :
Pepergogo:
Try this :
CaramelFudge:
I have had a similar issue and guess what 40 compiles later it worked
so here's my advice
delete your snd sabl files located in
\steamapps\common\Call of Duty Black Ops III\usermaps\zm_zomsinspace\sound\zone\
I deleted the folder called cache banks
keep compiling till they are regenerated and if the sound still doesn't play the script is wrong
Pepergogo:
I have had a similar issue and guess what 40 compiles later it worked
so here's my advice
delete your snd sabl files located in
\steamapps\common\Call of Duty Black Ops III\usermaps\zm_zomsinspace\sound\zone\
I deleted the folder called cache banks
keep compiling till they are regenerated and if the sound still doesn't play the script is wrong
CaramelFudge:
void <player> PlayLocalSound(<sound name>)
[LIST=1]
Pepergogo:
void <player> PlayLocalSound(<sound name>)
[LIST=1]
- [MANDATORY] <sound name> The name of the sound or hash
CATEGORY: Player [/LIST]
CLIENT/SERVER: Server
SUMMARY: Plays a sound locally
EXAMPLE: self playlocalsound( "evt_squad_activate" )
This may help as well
this is in the bops 3 mod docs located in
Steam\steamapps\common\Call of Duty Black Ops III\docs_modtools
lots of engine functions there like this.
just press ctrl F then put what you're looking for in the search bar
in this case it'd be sound