Page 1 of 1

Trigger sound from lua fuction?

Posted: Mon Jun 08, 2009 11:38 pm
by MsHwIz
I was wondering is it possible to trigger a sound through an lua function?
thanks in advance.

Re: sound from lua fuction?

Posted: Mon Jun 08, 2009 11:40 pm
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.