Cherry92
6th Jun 2012, 11:14 AM
I'm making a new mod that toddlers chat to each other,
everything works except playing their voice, so that they really chat,
here's my code to play their voice:
Audio.StartObjectSound(base.Target.ObjectId, "vo_tod_talk_talk_lpaP_pa10", false);"vo_tod_talk_talk_lpaP_pa10" is one of the toddler's voice key that I found in "FullBuild1.package",
I'm just hard-coding to play this specific voice (first), but I hear they said nothing :faceslap:
Am I calling the right method to play sound, or I've pick up the wrong key to play?
Also a minor question, not very related to the topic...
I want to use the original string "Chat with ..." or simply "Chat" to be my interaction name,
but I've search all over the code, and I can't find any localized "Chat"-related string key...
(even I found those interactions, their definition didn't override the interaction name)
Any hints on that?
Actually, there is an easy way to do that....
I didn't realize that playing animation would also play its sound,
so the problem is solved by forcing the toddler to talk :anime:
However, I still cannot find what is the key to the "Chat" interaction name :faceslap:
everything works except playing their voice, so that they really chat,
here's my code to play their voice:
Audio.StartObjectSound(base.Target.ObjectId, "vo_tod_talk_talk_lpaP_pa10", false);"vo_tod_talk_talk_lpaP_pa10" is one of the toddler's voice key that I found in "FullBuild1.package",
I'm just hard-coding to play this specific voice (first), but I hear they said nothing :faceslap:
Am I calling the right method to play sound, or I've pick up the wrong key to play?
Also a minor question, not very related to the topic...
I want to use the original string "Chat with ..." or simply "Chat" to be my interaction name,
but I've search all over the code, and I can't find any localized "Chat"-related string key...
(even I found those interactions, their definition didn't override the interaction name)
Any hints on that?
Actually, there is an easy way to do that....
I didn't realize that playing animation would also play its sound,
so the problem is solved by forcing the toddler to talk :anime:
However, I still cannot find what is the key to the "Chat" interaction name :faceslap: