how to do speech...here it is.
Moderator: Moderators
how to do speech...here it is.
I Can succesfully do speech
make 2 enermys. 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
make 2 enermys. 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 am currently tryin to finish my single player level. (about 20% complete so alot of work todo, but i am doin loads everyday, so give me 2weeks of less)
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 am currently tryin to finish my single player level. (about 20% complete so alot of work todo, but i am doin loads everyday, so give me 2weeks of less)
...prepare for your finest hour...
Is it possible to modifiy that code for lets say hmm..$talker1 lookat $talker2
$talker1 say den_m2l2_218
Him to look at a drive by opeltruck like this?
ex.
Code: Select all
$AI1allie lookat $OpelTrk
$AI1Allie say Watch_out
Yes, the argument supplied to the say command is an animation alias. You can create these yourself, although you need to include all animations for the characters that have to use them. So, you'll have the create your own enemies / friendlies. Read the Single Player Maps Without Test tutorial on how to do so. Just change the sound name in your personal TIKI in the models/human/animation/dialogue folder.
Or, maybe using the regular alias in your script is easier
.
Or, maybe using the regular alias in your script is easier
After 20 minutes of searching i found this hope it helps
This dispays text of what you want. Just a sec let me try it out
I have speech working fine, but I have one problem: I can't get subtitles to appear!! Do I have to add some special script to make them show up??
Code: Select all
sound_message

