Page 1 of 1

How do I make people sit?

Posted: Tue Sep 03, 2002 8:40 pm
by Divine Spirit
Hi. Does anyone know how to make a normal door (non-rotating), and how to make people sit? Thanks.

Posted: Wed Sep 04, 2002 12:00 am
by kdja
Make a brush and apply a door texture to it.

No idea how to make AI sit.

kdja

sitting animations exist and scripts

Posted: Fri Sep 06, 2002 10:27 pm
by Oddball_Woof
ask wombat, the card players sit down from standing in his map so it must be in the cardgame.sc... a scripted animation. Whether they'll sit for another reason I don't know can't think of another time in SP game except in Jeep when the SAS guy is driving or at start in back of truck ...also kraauts in lorries...ummm there are a few occasions... so you might be able to convince engine using one of these scripts to do it.
Ask wombat hs's the man!

Posted: Tue Sep 17, 2002 7:39 am
by ScorpioMidget
you have to script the ai to sit

something like

$myai exec global/crouch.scr

for a player you can do

$player forcelegsstate CROUCH_IDLE

or in mp for a player

(after your trigger)
local.player = parm.other
local.player forcelegsstate CROUCH_IDLE

Posted: Wed Sep 18, 2002 11:23 pm
by Mirek
I did some tests and below is what I extracted from the animation used in the card game -


$sitman holster // hide gun
$sitman.origin = $chair1.origin // stand where the chair is
$sitman.angles = $chair1.angles // face the way the chair does
$sitman anim chair_radio_listenidle // the animation



I have a German Ai - $targetname = sitman
And a chair - $targetname = chair1

I found you have to make the chair into a script model otherwise the AI will sit in the air where u placed him.

I am sure there are different sitting positions, like on the back of the truck where they sit straight. Just have to find the animation refrence. :)


Cheers,
Mirek

AI properties

Posted: Thu Sep 19, 2002 6:01 am
by tltrude
Highlight the AI guy and hit key N. Click on "anim +" at the bottom and it will show you all the positions that that AI can do. Then just put the one you want in your script like this:

level waittill spawn

$officer1 anim lean_chair_legs
$dude2 anim idle_crouch_grenade

Note, the AI will probably stand if he hears you unless you disable his hearing. I'm sure there is more to it than that, but I hope this helps some, good luck.

Posted: Thu Sep 19, 2002 6:40 am
by Mirek
MR tltrude u have been keeping secrets !!!!!!!! :lol:

I have just spend hours looking through files to find animations :cry: and all the while I could have done in RMohRadiant!?!?!?!?


Thanks Tom :D

Posted: Thu Sep 19, 2002 12:59 pm
by Manstein
hi,

i?m also trying to give the ai some animations, i tried out tltrudes and mirkes suggestions, but both didn?t work...

I?m using it in a map called test_anim.map and the console told me something of NULL applied to no listener or somehting like that...

Anyone know the answer?

Thanx in advance

Manstein

Posted: Thu Sep 19, 2002 4:16 pm
by jv_map
I think that should say 'cannot cast NULL to listener', which could be caused by anything, so please be somewhat more specific on the error message and the script command you're using.

Posted: Thu Sep 19, 2002 7:43 pm
by UBER_SOLDAT
this is from m4l2, and is for a truck driver:

$camptruck_driver exec global/disable_ai.scr
$camptruck_driver notsolid
$camptruck_driver rendereffects "-shadow"
$camptruck_driver anim_scripted opel_driver
$camptruck attachdriverslot 0 $camptruck_driver
$camptruck nodamage

youd leave out the attatchdriverslot, which is for putting him in a certain seat in the truck, and the nodamage bit, which makes the truck invincable. I havent tried any of this so it might not work. Try a different animation instead of opel_driver if it doesnt.

Posted: Thu Sep 19, 2002 11:04 pm
by Mirek
Manstein,

You'll have to be more specific as to what u want done. I have had reasanable success with animation so if you say exactly what u are trying to do then I would love to have a go and maybe build a small test map.

Cheers
Mirek

Posted: Thu Sep 19, 2002 11:08 pm
by Manstein
Thanx, but I have fixed it by myself:D.

I put an "exec global/forceanim.scr in the script and it worked, hurra!

Cya
Manstein