Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!radio1()
{
radio = getEnt("radio1", "targetname"); //this is the radio model that the sound will come from
radio_trigger = getEnt("radio1_trigger", "targetname"); //the trigger that you will use to start the sound
radio_trigger setCursorHint("HINT_NOICON");
radio_trigger UseTriggerRequireLookAt();
radio_trigger setHintString("Press &&1 to activate radio"); //remove this if you don't want a hintstring
for(;;)
{
radio_trigger waittill("trigger");
if( level.radio_playing == 0 )
{
level.radio_playing = 1;
radio_trigger disable_trigger();
radio playsound("radio1");
wait 366; //change this to the length of your sound
radio_trigger enable_trigger();
level.radio_playing = 0;
}
if( level.radio_playing == 1 )
{
iprintln("Please wait until other radios have finished playing");
wait 5;
}
}
}
radio2()
{
radio = getEnt("radio2", "targetname"); //this is the radio model that the sound will come from
radio_trigger = getEnt("radio2_trigger", "targetname"); //the trigger that you will use to start the sound
radio_trigger setCursorHint("HINT_NOICON");
radio_trigger UseTriggerRequireLookAt();
radio_trigger setHintString("Press &&1 to activate radio"); //remove this if you don't want a hintstring
for(;;)
{
radio_trigger waittill("trigger");
if( level.radio_playing == 0 )
{
level.radio_playing = 1;
radio_trigger disable_trigger();
radio playsound("radio2");
wait 10; //change this to the length of your sound
radio_trigger enable_trigger();
level.radio_playing = 0;
}
if( level.radio_playing == 1 )
{
iprintln("Please wait until other radios have finished playing");
wait 5;
}
}
}