x


[Closed] Play Animation On Update

I have a beastman model that I need to play dead. I thought it would be pretty simple to do so, but apparently I'm missing something important? Basically All I need is for the ko animation to play. I tried writing a script but to no avail. Any thoughts on how I can get this to work?

more ▼

asked Dec 01 '11 at 06:50 AM

TheEmeralDreamer gravatar image

TheEmeralDreamer
171 47 64 70

Could you post what you have so far? It's really just as simple as having something like this-

if(health <= 0 && !dead)
{
    dead = true;
    animation.Play("FATALTIY");
}

Unless there's something you haven't told us that makes it more complicated?

Dec 01 '11 at 07:05 AM syclamoth

I'm so sorry. I was just coming to close this question. I actually placed the animation call into awake instead of update and it didn't work -_-* Thanks for answering tho! :)

Dec 01 '11 at 08:25 AM TheEmeralDreamer

Well, that would certainly explain why it didn't work!

Dec 01 '11 at 10:14 AM syclamoth
(comments are locked)
10|3000 characters needed characters left

The question has been closed Dec 01 '11 at 10:36 PM by TheEmeralDreamer for the following reason:

The question is answered, right answer was accepted


0 answers: sort newest

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3804
x55

asked: Dec 01 '11 at 06:50 AM

Seen: 643 times

Last Updated: Dec 01 '11 at 10:14 AM