Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1.09 KB

3606.md

File metadata and controls

12 lines (8 loc) · 1.09 KB

Add sound for when power is activated?

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


bubba443:

How do I add a sound that plays when power is activated?


xReaction:

How do I add a sound that plays when power is activated?

Really simple to do. at the bottom of your main do:
thread waitTillPower();

then paste this at bottom of gsc:

function waitTillPower()
{
level flag::wait_till("power_on");
IPrintLnBold("POWERS ON!!");
GetPlayers()[0] PlaySound("SOUNDNAME_IN_ALIAS");
}

this will work for 2d sounds, if its a 3d sound that you want to be played from a specific point that's slightly different :)
hope this helps bro