Page 1 of 1

can anyone help with...

Posted: Sat Oct 19, 2002 9:20 am
by LT.BARNES
Can anyone out there do me a lil room... and in the room have a man sittin down (like in the first mission in the truck, or anythin, which will keep repeatin, untill i walk up to him and then he will stand up and follow me plz.

I would love to see my soldiers do some animation in my level like...

soldier sittin down

axis sleepin
axis listen on the radio
some axis talk to each other
an axis hittin a soldier on a chair like in the first mission
some axis sittin playin cards
leanin on wall
axis workers...doin work.. lol

would be gr8

Posted: Sun Oct 20, 2002 6:35 am
by jv_map
You need to play around a bit with animations. All scripted animations are in pak0.pk3 in the models/human/animation/scripted folder. Check out a few TIKIs, decide which animation you want to use and then type:

$<targetname> anim <alias_name>

For example for someone listening to the radio:

$germansoldier anim chair_radio_listenidle

This particular animation is in table.tik in the above mentioned folder.

Posted: Sun Oct 20, 2002 8:41 am
by Nijnrich
I asked the same questions a fews days ago.

Apparently there are some animations that loop by themselves. The others you have to have them repeated manually.. I made an thread for these animations that's easy to use..

Code: Select all


// this example has the targetname actor playing a guy sitting in the truck
$actor  thread loop_anim truck_idle_guy01 

// definition 
loop_anim local.anim: 
while(isAlive self) 
{ 
self anim local.anim 
self waittill animdone 
} 
end  // loop_anim
Thanks to jv_map for the solution on this one :)