Sounds
Posted: Sun Aug 31, 2008 1:13 pm
LE, are sounds/voices supposed to be working right now with the PlayVoice(), PlaySound(), and PlayFlavor() LUA functions? If so, can you give a quick example of how one might be set up? Here's what I am trying in Zone_ID 26 on my world, with a Captain Varlos NPC.
The script is working, because he will face me. There's another interesting artifact of this zone, since it's a ship on the sea and (I think) because I do not have a location_id, he is bobbing up and down in mid air heh... hopefully that is not affecting this test.
I tried taking out the path and leaving just the mp3. The data comes from the raw_dialogs table for Captain Varlos. I am not sure if the zone_name in the path is preventing it from working or not.
Thanks
Code: Select all
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
PlayVoice(Spawn, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_027.mp3", 2285948102, 2994720481)
endI tried taking out the path and leaving just the mp3. The data comes from the raw_dialogs table for Captain Varlos. I am not sure if the zone_name in the path is preventing it from working or not.
Thanks