Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: SWEGTA on March 17, 2014, 04:39:41 PM
-
Does anyone know how to make a ped speak?
-
I think if you do the lua code to make music play but replace the music name with the speech name
-
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.
-
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)
-
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.
-
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.