Modme Forums

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