Chaz-CR Posted August 12, 2013 Share Posted August 12, 2013 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 Link to comment
Chaz-CR Posted August 12, 2013 Author Share Posted August 12, 2013 It will play the default sound of a ped when he is talking? i dont think so, i mean when you are near from a ped, an example CJ, he say something, i wanna now if i can play that sounds whit a script Link to comment
Vector Posted August 12, 2013 Share Posted August 12, 2013 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
TAPL Posted August 12, 2013 Share Posted August 12, 2013 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 setPedVoice Link to comment
Chaz-CR Posted August 12, 2013 Author Share Posted August 12, 2013 OMG @Vector very explained but i really needed the Function TAPL got me, anyways thanks a lot for explain me! Link to comment
Vector Posted August 12, 2013 Share Posted August 12, 2013 i didn´t know that function exists. .) Link to comment
tosfera Posted August 13, 2013 Share Posted August 13, 2013 i didn´t know that function exists. .) awhhh I feel so bad for you right now. BUT HEY! You gave me an idea! thanks mate Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now