I'm looking for the line of code that makes the sound when an objective is complete.
I've looked through the stock scripts but I haven't found anything that works.
Thanks.
Location of objective complete sound? [Solved]
Moderator: Moderators
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Location of objective complete sound? [Solved]
Last edited by Noobasaurus on Sat Jul 12, 2014 10:02 pm, edited 1 time in total.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Location of objective complete sound?
From Objective.lua:
The entire function:
Basically, it's supposed to play automatically upon Objective:Complete, but you should be able to call it regardless with this:
Also, in case you're wondering or if it's helpful in any way, it's a sound stream.
Code: Select all
--play a little ditty
if not self.multiplayerRules then
BroadcastVoiceOver("common_objComplete", self.winningTeam)
endHidden/Spoiler:
Code: Select all
BroadcastVoiceOver("common_objComplete")-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Location of objective complete sound?
Thank you. I added it, however, and it doesn't play a sound. No errors.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Location of objective complete sound?
Hmm. Could you please post the sound section of your LUA? (The section in ScriptInit().)
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Location of objective complete sound?
So it's currently played in a few different places.
I did also try it without the 1 in case you were wondering.
Hidden/Spoiler:
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Location of objective complete sound?
Noooo, I meant the section with all of the OpenAudioStream lines. 
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Location of objective complete sound?
OH. I'm supposed to load it there? OH.
Got it, thanks.
Got it, thanks.
