Actions

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ZeroSkaten
Second Lieutenant
Posts: 159
Joined: Sun Jan 12, 2003 11:03 pm
Location: Canada
Contact:

Actions

Post by ZeroSkaten »

Is there any way to make an AI sit down?
Together we will leave no posts un awnsered!
BTW that me in the picture :wink:
Image
Visit my site: http://www.planetmedalofhonor.com/hk/

As I say: A 3d model a day keeps the career consultant away.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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
}
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Anim

Post 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
Tom Trude,

Image
User avatar
ZeroSkaten
Second Lieutenant
Posts: 159
Joined: Sun Jan 12, 2003 11:03 pm
Location: Canada
Contact:

Post by ZeroSkaten »

Thanks guys.
Together we will leave no posts un awnsered!
BTW that me in the picture :wink:
Image
Visit my site: http://www.planetmedalofhonor.com/hk/

As I say: A 3d model a day keeps the career consultant away.
Post Reply