OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Siber Fox on 08 Jun 2003, 07:42:21

Title: Have a seat, and relax
Post by: Siber Fox on 08 Jun 2003, 07:42:21
How does one get a soldier to sit down in a chair?

And is there an animation for this? If so, what is it?
Title: Re:Have a seat, and relax
Post by: LCD on 08 Jun 2003, 08:02:28
unitname switchmove "onchair"

nd make u sure u do it on chair X

LCD OUT
Title: Re:Have a seat, and relax
Post by: Kaliyuga on 08 Jun 2003, 08:05:03
unitName playmove "onchair"

should work for you ... I do believe that you have to loop that command for it to work properly...

hit the search button up above and you'll come up with the right syntax for the looped stuff if you don't know it already....

it's a fairly common question :D
Title: Re:Have a seat, and relax
Post by: KyleSarnik on 09 Jun 2003, 00:28:33
hmm I use that switchmove A LOT. I don't think you have to loop it or what ever.



:gunman:                                                                                                                  :booty:
:gunman: :gunman:
[shadow=black,right,300]Kyle Sarnik[/shadow]:gunman: :gunman:
Title: Re:Have a seat, and relax
Post by: LCD on 09 Jun 2003, 13:11:29
no loop needed ;D

@ kali - m faster :P ;D

LCD OUT
Title: Re:Have a seat, and relax
Post by: Grinning_Giant on 18 Jun 2003, 13:05:19
Put this in the Init field using Chair X and it should work a treat

Initialization
Code: [Select]
Man1 Setpos [Getpos Chair Select 0, Getpos Chair Select 1, 0]
To make the man sit on the chair you will have to use an external script or use a trigger using this code:

Code: [Select]
Man1 switchmove "OnChair"
P.S. @ N00Bs, Make sure you name the Chair 'Chair' and the Man 'Man1' for these particular lines of code.