Modme Forums
Menu:

Sound won’t work

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Ping998
Hi, I have a generator on my map which works when activated via a trigger (simple trigger_use) and I want it to simply play a sound when it is activated. I've tried a LOT of different things to try to get it to work but it just won't play in-game!

Here is the section of code in my mapname.gsc:

generator waittill( "trigger", player );
	players = GetPlayers();
	for(i=0; i < players.size; i++)
	{
		players[i] PlayLocalSound("genon");
	}

And here is the soundalias I'm using:

genon,,,mySound\genon.wav,,,UIN_MOD,,,,,BUS_FX,,,,,,90,90,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Could someone please help?

My sound is 48000Hz and it's a WAV 16-bit, I've asked a few individual scripters but they can't figure it out :/

Any suggestions would be greatly appreciated :)


ModmeBot:

Reply By: mathfag
Try this alias

genon,,,mySound\genon.wav,,,UIN_MOD,,,,,,,,,0,0,95,100,0,500,700,,,,,,,,,,,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


ModmeBot:

Reply By: Ping998

mathfag
Try this alias genon,,,mySound\genon.wav,,,UIN_MOD,,,,,,,,,0,0,95,100,0,500,700,,,,,,,,,,,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


Thank you, I'll try it!