Home   Help Search Login Register  

Author Topic: Have a seat, and relax  (Read 563 times)

0 Members and 1 Guest are viewing this topic.

Siber Fox

  • Guest
Have a seat, and relax
« 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?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Have a seat, and relax
« Reply #1 on: 08 Jun 2003, 08:02:28 »
unitname switchmove "onchair"

nd make u sure u do it on chair X

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Kaliyuga

  • Guest
Re:Have a seat, and relax
« Reply #2 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

KyleSarnik

  • Guest
Re:Have a seat, and relax
« Reply #3 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:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Have a seat, and relax
« Reply #4 on: 09 Jun 2003, 13:11:29 »
no loop needed ;D

@ kali - m faster :P ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Grinning_Giant

  • Members
  • *
  • Do not let them get away with it!
Re:Have a seat, and relax
« Reply #5 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.
« Last Edit: 18 Jun 2003, 13:10:59 by Grinning_Giant »