Page 1 of 1

Play sound on enter region

Posted: Sat Feb 06, 2010 11:45 pm
by wishihadaname
Is it possible to make the game play a voiceover when the player enters a certain area or are sounds tied only to objectives or timers?

Re: Play sound on enter region

Posted: Sun Feb 07, 2010 12:07 am
by 501st_commander
I think that a sound region, its in the docs

Re: Play sound on enter region

Posted: Sun Feb 07, 2010 9:21 am
by mswf
Soundregions are stuff like the cantina music playing in Tatooine.

Re: Play sound on enter region

Posted: Sun Feb 07, 2010 10:16 am
by Redline
I guess it should be possible, because if u look at the campain mode scripts then u can see same funny codes^^
like

Code: Select all

BroadcastVoiceOver("GEO_obj_54", ATT)   

ScriptCB_SndPlaySound("SPA1_obj_52")
  
StartTimer(music01Timer)
            OnTimerElapse(
                function(timer)
                ScriptCB_StopInGameMusic("imp_dea_objComplete_01")
                ScriptCB_PlayInGameMusic("imp_dea_act_01")
                DestroyTimer(timer)
            end,
            music01Timer
        ) 
        end
    end

             
And all u have to do is it to connect it with a region i think, but wait u wanna add some new voice?

Ps:Try to work with them. ;)