AI Speaking
Moderator: Moderators
-
Guest
AI Speaking
Ok, I'm trying to get started on a map... but I would like to know if there is a way that I could make it so that when the player crosses a trigger, the friendly AI says something.
Setup a trigger to go off when walked through, give it a key: setthread and corresponfing value: speech
In you script add a thread, called speech, and add in code like below:
speech:
$friendlyAItargetname say soundalias
end
$friendlyAItargetname - This is the target name you have given to the friendly AI character.
say - This is a script command which will make the targeted character speak.
soundalias - This is an alias from uberdialog, this is what will be spoken.
For example:
speech:
sgt_barnes say dfr_M1L1_104k_1
end
You may also find the following commands useful:
lookat
turnto
waittill saydone
In you script add a thread, called speech, and add in code like below:
speech:
$friendlyAItargetname say soundalias
end
$friendlyAItargetname - This is the target name you have given to the friendly AI character.
say - This is a script command which will make the targeted character speak.
soundalias - This is an alias from uberdialog, this is what will be spoken.
For example:
speech:
sgt_barnes say dfr_M1L1_104k_1
end
You may also find the following commands useful:
lookat
turnto
waittill saydone
