Trigger sound from lua fuction?

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
MsHwIz
Private Second Class
Posts: 73
Joined: Sat Feb 07, 2009 6:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Nowhere :) :)

Trigger sound from lua fuction?

Post by MsHwIz »

I was wondering is it possible to trigger a sound through an lua function?
thanks in advance.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: sound from lua fuction?

Post by Maveritchell »

Yes.

...but I assume you are also asking how:
ScriptCB_SndPlaySound("sound_name")

Edit: As a side note, this may only play sounds that inherit from the voiceover (vo) template. That's not a problem, but it may be something to consider when setting up your sounds.
Post Reply