UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How do I add the giant style Easter Egg Radio to my map? I need help

broken avatar :(
Created 7 years ago
by Conbini2017
0 Members and 1 Guest are viewing this topic.
2,228 views
broken avatar :(
×
broken avatar :(
Location: jp
Date Registered: 26 June 2016
Last active: 2 years ago
Posts
86
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
Conbini2017's Groups
Conbini2017's Contact & Social Linksdadakhrconbini2017
 I would like to make a radio Easter egg like a giant.
(Do not display when playing back)
Last Edit: February 05, 2017, 06:36:45 am by Conbini2017
broken avatar :(
×
broken avatar :(
Location: us?
Date Registered: 21 August 2016
Last active: 2 years ago
Posts
80
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
All0utWar's Groups
All0utWar's Contact & Social Links
Just make a trigger_use near the radio and have a script on it that will play a sound when used.
broken avatar :(
×
broken avatar :(
Location: jp
Date Registered: 26 June 2016
Last active: 2 years ago
Posts
86
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
Conbini2017's Groups
Conbini2017's Contact & Social Linksdadakhrconbini2017
Is there a script code?
That radio can only be played once. <3
broken avatar :(
×
broken avatar :(
Location: us?
Date Registered: 21 August 2016
Last active: 2 years ago
Posts
80
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
All0utWar's Groups
All0utWar's Contact & Social Links
Code Snippet
Plaintext
function radio_message()
{
trig = GetEnt("radio_trigger", "targetname");
trig SetHintString("");

trig waittill("trigger", player);
player PlaySound("YOUR_CUSTOM_ALIAS");
        trig Delete();
}
Put this at the bottom of your mapname.gsc and then somewhere inside of function main(), write
 
Code Snippet
Plaintext
thread radio_message();

In Radiant you'll just need to create a trigger_use with the targetname of "radio_trigger"
Last Edit: February 04, 2017, 07:18:39 am by All0utWar
broken avatar :(
×
broken avatar :(
Location: jp
Date Registered: 26 June 2016
Last active: 2 years ago
Posts
86
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
Conbini2017's Groups
Conbini2017's Contact & Social Linksdadakhrconbini2017
I saw this and it was perfect!
Thank you very much! ;)
Last Edit: February 05, 2017, 12:12:40 pm by Conbini2017

 
Loading ...