Page 1 of 1

Actions

Posted: Sun Mar 30, 2003 2:23 am
by ZeroSkaten
Is there any way to make an AI sit down?

Posted: Sun Mar 30, 2003 6:18 am
by jv_map
First set a good motion (leg) animation:

self setanim lean_chair_legs

or

self setanim lean_sitwall_legs

This animation should loop by itself.

Then you probably need a relaxing upper body animation, which has to be looped manually:

Code: Select all

while(isAlive self)
{
    self setupperanim relax
    self waittill upperanimdone
}

Anim

Posted: Sun Mar 30, 2003 7:35 am
by tltrude
In the properties of the entity (key N) you will see two buttons under the title "Anim:". Click on those, and you will see all the differant animations for it.

You can set the animation to what you want, but to make it stay that way you have to add it to your script:

level waitill prespawn

$mydude anim name_ofthe_animation

Posted: Sun Mar 30, 2003 2:27 pm
by ZeroSkaten
Thanks guys.