Game Modding | Call of Duty: Black Ops 3 | Radiant
ModmeBot:
Thread By: yologirlgamer
How would I go about making a "Press *** to play sound" trigger?
Where it activates a custom sound of mine but only plays once
I also want multiple of these
ModmeBot:
Reply By: TheMikeyMan
function sound()
{
trig=GetEnt("trigname"."targetname");
trig SetHintString ("Hold ^3&&1^7 to play sound");
trig SetCursorHint ("HINT_NOICON");
while(1)
{
trig waittill("trigger", player);
trig playsound ("sound");
}
}
add a while loop around the wait and play sound like this
ModmeBot:
Reply By: Harry Bo21
TheMikeyMan
function sound(){trig=GetEnt("trigname"."targetname");trig SetHintString ("Hold ^3&&1^7 to play sound");trig SetCursorHint ("HINT_NOICON");while(1){trig waittill("trigger", player);trig playsound ("sound");}} add a while loop around the wait and play sound like this