Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: SWEGTA on March 17, 2014, 04:39:41 PM

Title: Making a ped speak (LUA)
Post by: SWEGTA on March 17, 2014, 04:39:41 PM
Does anyone know how to make a ped speak?
Title: Re: Making a ped speak (LUA)
Post by: Bellic19 on March 17, 2014, 05:18:20 PM
I think if you do the lua code to make music play but replace the music name with the speech name
Title: Re: Making a ped speak (LUA)
Post by: MadmaN on March 17, 2014, 08:23:15 PM
if memory serves speaking is controlled partially by action nodes. I may be a bit off on this one and either 1emon or Rise will probably have a better answer to this.
Title: Re: Making a ped speak (LUA)
Post by: c00ld0c26 on March 18, 2014, 02:18:01 AM
Walter has a command that makes a ped speak.
It also lets you adjust the pitch (heavy voice, little pitchy ect...) and which line to say and how loud it will be.
Even tho it's not the ped speaking it's the game playing a line of the character you want.
So mix action nodes and that command together, you got yourself a ped that speaks (the command) and acts like he speaks (action nodes)
Title: Re: Making a ped speak (LUA)
Post by: WhenLifeGivesYouLemons on March 18, 2014, 09:49:24 AM
to kinda force that ped to speak to you you can go like
---------------------

PedWantsToSocializeWithPed(Ped, gPlayer)
PedIsSocializing(Ped)
PedSetEmotionTowardsPed(Ped, gPlayer, 4)
------------------------

im sure there are more.
Title: Re: Making a ped speak (LUA)
Post by: Unknownsoldier on June 08, 2014, 07:56:21 PM
I think if you do the lua code to make music play but replace the music name with the speech name
Nope, doesn't work like that. Because you may notice how when you walk away from a talking ped, their voice gets lower. MadmaN is right.