ID:169488
Jun 11 2005, 8:57 pm
|
|
I'm having trouble making a robot speak when i am controling him, can someone help me? I would asume it would be the same as speaking into a intercomm.
|
Jun 11 2005, 9:30 pm
|
|
Do you mean sending a plain text message to people in the world or in the area? Or playing a soundfile nearby or what? You're too vague for me to understand.
|
I think you could use SOUND...
world << sound('message.wav') This example above plays the specified sound file to all players. The example below plays the specified sound file to the user. usr << sound('message.wav') You can use an if statement to respond... if(condition=="true") usr << sound('message1.wav') else usr << sound('message2.wav') ...where message1 is the "true" response and message2 is the response for anything else. |