News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Making a ped speak (LUA)  (Read 2387 times)

0 Members and 1 Guest are viewing this topic.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,423
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Making a ped speak (LUA)
« on: March 17, 2014, 04:39:41 PM »
Does anyone know how to make a ped speak?

Offline Bellic19

  • Sr. Member
  • ***
  • Posts: 933
  • Gender: Male
    • View Profile
Re: Making a ped speak (LUA)
« Reply #1 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

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: Making a ped speak (LUA)
« Reply #2 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.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Making a ped speak (LUA)
« Reply #3 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)

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Making a ped speak (LUA)
« Reply #4 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.

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Making a ped speak (LUA)
« Reply #5 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.