can anyone help with...

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LT.BARNES

can anyone help with...

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Nijnrich
Corporal
Posts: 28
Joined: Tue Oct 01, 2002 11:40 pm
Location: Eindhoven
Contact:

Post 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 :)
Post Reply