function finishedEasterEgg() { if(level.soundEasterEgg >= level.playEasterEgg) { IPrintLnBold("You have found all the triggers"); level.playSoundLocation PlaySound("sephiroth"); // Change "sephiroth" to the name of your soundalias. } }
Paste this in the main function of your mapname gsc
Code Snippet
Plaintext
thread soundEasterEggInit();
Now in radiant make 3 damage triggers, and put 3 script models in them (Models are optional). Give the damage triggers the targetname "egg_shoot1" going from 1 to 3. Give the models the targetname "shoot_model1" going from 1 to 3.
Now make a script origin and set it to server. Give it this kvp ("easter_egg_sound_location", "targetname").
Do i have to use a seperate program to convert a song to that , and if so would you recommend one? Will it pull that file from my desktop or whatever as long as its included in that one line at the end of the script? Or do i have to put the file in one of the folders thats being called upon at the top of the script? Sorry i have no idea how any of this works.
function finishedEasterEgg() { if(level.soundEasterEgg >= level.playEasterEgg) { IPrintLnBold("Elena Siegman - Dead Again"); level.playSoundLocation PlaySound("test_sound"); // Change "sephiroth" to the name of your soundalias. } }
and for the script origin I added the KVP exactly, but it just shows the text after I shoot all the triggers. I know it isn't the sound because I get no errors and made sure everything was perfect.
Tried this and also replacing the origin one with model struct, Still nothing is playing, it's all working such as collecting all perk bottles and then nothing will play. it's strange.