Kork Death Cry
by Steven B · in Torque Game Engine · 05/15/2006 (12:23 pm) · 5 replies
I have kork stopped and I shoot him 3 times with the crossbow
and he does the death animation.
I have already changed the animation index number to get him
to do different anims.
My problem is that I want to add orc_death.wav when he is dying.
I have a .wav and .ogg and tried both.
I am in the right file player.cs, the audio profile, and funtion is there.
I tried a search and what I have read hasn't do it for me.
I'm thinking all I need is a small line of code, I am just no getting it.
I've been at it awhile with no luck. (all day)
Thanks if you can help,
Steve
and he does the death animation.
I have already changed the animation index number to get him
to do different anims.
My problem is that I want to add orc_death.wav when he is dying.
I have a .wav and .ogg and tried both.
I am in the right file player.cs, the audio profile, and funtion is there.
I tried a search and what I have read hasn't do it for me.
I'm thinking all I need is a small line of code, I am just no getting it.
I've been at it awhile with no luck. (all day)
Thanks if you can help,
Steve
About the author
www.AnswerRack.com Ask Questions There, Get Answers. You can Ask a Game Development Question You can Ask A Mechanic A Question. Ask just about anything.
#2
I can't figure it out.
05/15/2006 (1:02 pm)
I have been trying to do just what you are saying andI can't figure it out.
#3
In any case, all the examples are in the code and you need to study it if you don't know how to do this, or better yet.. search the forums.
05/15/2006 (2:18 pm)
Try using serverPlay3D instead of %obj.play3D. The latter doesn't work (the famous OpenAL implementation) in all functions, but the former has the drawback of not updating the transform, which might or might not be needed for your death animation depending on how your game is setup.In any case, all the examples are in the code and you need to study it if you don't know how to do this, or better yet.. search the forums.
#4
during the kork death animation, I have tried, looked, searched,screamed
pulled my hair out, and everything else and still haven't gotten it.
this is over 2 days at it.
thanks,
Steve
05/17/2006 (7:51 am)
Can somebody please give me some code for playing a soundduring the kork death animation, I have tried, looked, searched,screamed
pulled my hair out, and everything else and still haven't gotten it.
this is over 2 days at it.
thanks,
Steve
#5
05/20/2006 (6:10 pm)
Look at AIGuard resoures. I had same problem until i install the AIGuard. This may help you as will but not sure.
Torque Owner Badguy
and follow the code path.
do a project search for any of the specific datablock names used with this sound.
you should be able to solve this using what you have.