Jump to content

Talking sounds.


Chaz-CR

Recommended Posts

create a collision shape in server-side with

 createColCuboid  
createColSphere  

attach the collision shape to the ped with this.

 attachElements  

create an event handler for "onColShapeHit", to check if an element is inside the collision shape that surrounds the

ped. attach the event handler to the collision shape.

  
addEventHandler("onColShapeHit",...);  
  

check if the element is a player. if it is a player, trigger an event for that player to play the sound.

  
triggerClientEvent -- to trigger the event. 
addEvent       -- to use the event at client-side. 
addEventHandler -- to create an event handler at client-side attached to that event. 
  

now, at client-side ....

  
playSound3D -- to play a sound in a specific 3D pos. 
getElementPosition  -- to get the ped´s position. you can use this function to get the sound´s origin.  
  

Link to comment
I'd like to know if exists some function that plays the sound of the peds when they are talking, i mean if you have the GTA SA Full and you go to some ped, he will say something. hope you understand and can help me :D
setPedVoice 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...