Posted: October 2nd, 2005, 10:50 pm
thx for that, but how do i add another sound? i went through the same process as the first, giving the script_model and trigger different targetnames, and updated the csv but the sound doesnt play.
i'm thinking it might be something with the sound script:
i'm thinking it might be something with the sound script:
Code: Select all
main()
{
thread message1();
thread message2();
}
message1()
{
messagetrig = getent ("die_human","targetname");
alert = getent ("sound1", "targetname");
while(1)
{
messagetrig waittill ("trigger");
alert playsound("die");
wait 3;
}
message2()
{
messagetrig = getent ("laugh","targetname");
alert = getent ("sound2", "targetname");
while(1)
{
messagetrig waittill ("trigger");
alert playsound("laugh");
wait 3;
}