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

song problem?

broken avatar :(
Created 11 years ago
by NaviLlusShore
0 Members and 1 Guest are viewing this topic.
1,991 views
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
Signature
NaviLlicious
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
alright so im trying to add in a 3 trigger activated song for my map so i have a new .gsc with this in it
Code Snippet
Plaintext
#include maps\_music;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_utility;

main()
{
self.song = "erwachen_song"; //valid sound
self.teddy_num = 0;
thread teddy_1();
thread teddy_2();
thread teddy_3();
}

teddy_1()
{
teddy1 = getEnt("teddy1","targetname");
teddy1 SetCursorHint( "HINT_NOICON" );
teddy1 waittill( "trigger", player );
teddy1 Delete();

self.teddy_num = self.teddy_num + 1;

player playsound("meteor_affirm");

thread song_ee();
}

teddy_2()
{
teddy2 = getEnt("teddy2","targetname");
teddy2 SetCursorHint( "HINT_NOICON" );
teddy2 waittill( "trigger", player );
teddy2 Delete();

self.teddy_num = self.teddy_num + 1;

player playsound("meteor_affirm");
thread song_ee();
}

teddy_3()
{
teddy3 = getEnt("teddy3","targetname");
teddy3 SetCursorHint( "HINT_NOICON" );
teddy3 waittill( "trigger", player );
teddy3 Delete();

self.teddy_num = self.teddy_num + 1;

player playsound("meteor_affirm");
thread song_ee();
}

song_ee()
{
if(self.teddy_num == 3)
{
players = get_players();
for( k = 0; k < players.size; k++ )
players[k] playsound(self.song);
}
}
and i setup the sound alias so it looks like this
Code Snippet
Plaintext
name,file,platform,sequence,vol_min,vol_max,dist_min,dist_max,limit_count,limit_type,entity_limit_count,entity_limit_type,bus,volume_min_falloff_curve,volumefalloffcurve,reverb_send,dist_reverb_max,reverb_min_falloff_curve,reverb_falloff_curve,pitch_min,pitch_max,randomize_type,spatialized,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,chainaliasname,startdelay,speakermap,lfe percentage,center percentage,envelop_min,envelop_max,envelop percentage,occlusion_level,occlusion_wet_dry,real_delay,distance_lpf,move_type,move_time,min_priority,max_priority,min_priority_threshold,max_priority_threshold,,isbig

test,erwachen_song.wav,,,,1,1,75,1700,2,reject,1,reject,voice,,curve2,0.8,2100,,curve2,1,1,,3d,streamed,,,master,,,,,,0,,,,50,500,0.9,0.5,,,,,,10,25,0.25,1,,
and in mod builder i have "sound,erwachen_song" and "sound,easter_egg,,all_sp" the sound itself was converted properly and it is in my mapname/sounds folder, i made the 3 triggers in radiant and the kvp for trigger 1 is "targetname, teddy1" and i put teddy2 on trigger 2 etc so i go into the map and activate all the triggers and nothing plays so i thought i would try to see if it was a script i messed up so i setup a trigger multiple and put the kvp as "targetname,new_sound" and "script_string,test" test is the soundalias name so i went into the map again and walked into the trig and nothing played so im thinking it has something to do with the alias but cant figure out what
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
In the teddy script, you haven't put the correct sound alias name.

- Phil.
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
oh so i would put "playsound "test"" instead?
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
You just need to change that line
Code Snippet
Plaintext
self.song = "erwachen_song"; //valid sound
to use your sound alias ('test').

- Phil.
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
still nothing i changed it to playsound "test"

 
Loading ...