Play sound on enter region

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Play sound on enter region

Post 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?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: Play sound on enter region

Post by 501st_commander »

I think that a sound region, its in the docs
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Play sound on enter region

Post by mswf »

Soundregions are stuff like the cantina music playing in Tatooine.
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: Play sound on enter region

Post 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. ;)
Post Reply