Scripting Speech fo AI
Posted: Tue Mar 04, 2003 8:33 pm
Some one told me this works.
make 2 enemies. give one a targetname $talker1.
and the other a targetname $talker2
make a brush with a "trigger once" attached to it.
give the trigger key setthread
value speech
now in the script all u have to type in is...
speech:
$talker1 say den_m2l2_218p
$talker1 waittill saydone
wait 1
$talker2 say den_m2l2_219h
$talker2 waittill saydone
end
easy ay.
if u want to do more speech ingame jus do the same, but this time give the trigger
key setthread
value speech1 (just add a different number each time at the end of "speech")
so this time it will be....
speech1:
$talker3 say den_m2l2_249q
$talker3 waittill saydone
wait 2
$talker4 say den_m2l2_250a
$talker4 waittill saydone
end
_________________
...prepare for your finest hour...thanx
remember.
U can also get them to look at each other which is very simple to do...
just add
speech:
$talker1 lookat $talker2
$talker1 say den_m2l2_218p
$talker1 waittill saydone
(if u want the person to stop lookin after saydone, just add the line..)
$talker1 lookat NULL
I would really like to know if it does. I messed witrh it but couldn't get it to work. The bots worked fine but they never started talking. I tried the lines in several places in the script. Does anybody know cause I could have ablast with this if I could get it to work. There are so many wav files to use it's awesome, and making custom ones, well that would be the shiznit. 8)
make 2 enemies. give one a targetname $talker1.
and the other a targetname $talker2
make a brush with a "trigger once" attached to it.
give the trigger key setthread
value speech
now in the script all u have to type in is...
speech:
$talker1 say den_m2l2_218p
$talker1 waittill saydone
wait 1
$talker2 say den_m2l2_219h
$talker2 waittill saydone
end
easy ay.
if u want to do more speech ingame jus do the same, but this time give the trigger
key setthread
value speech1 (just add a different number each time at the end of "speech")
so this time it will be....
speech1:
$talker3 say den_m2l2_249q
$talker3 waittill saydone
wait 2
$talker4 say den_m2l2_250a
$talker4 waittill saydone
end
_________________
...prepare for your finest hour...thanx
remember.
U can also get them to look at each other which is very simple to do...
just add
speech:
$talker1 lookat $talker2
$talker1 say den_m2l2_218p
$talker1 waittill saydone
(if u want the person to stop lookin after saydone, just add the line..)
$talker1 lookat NULL
I would really like to know if it does. I messed witrh it but couldn't get it to work. The bots worked fine but they never started talking. I tried the lines in several places in the script. Does anybody know cause I could have ablast with this if I could get it to work. There are so many wav files to use it's awesome, and making custom ones, well that would be the shiznit. 8)