Home   Help Search Login Register  

Author Topic: Make a unit sit on a chair  (Read 883 times)

0 Members and 1 Guest are viewing this topic.

Loup-Garou

  • Guest
Make a unit sit on a chair
« on: 17 Feb 2004, 15:33:30 »
Is there a simple method to do that ? In the unit's (or object) init field ? Something as easy as giving a unit / object a specific height (this setPos [getPos this select0,getPos this select 1,1.5]) ??????  :thumbsup:

Loup-Garou

  • Guest
Re:Make a unit sit on a chair
« Reply #1 on: 17 Feb 2004, 15:39:36 »
Extra note : I'd like to know what to do if the chair is already (by default) in a house  ;D

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Make a unit sit on a chair
« Reply #2 on: 17 Feb 2004, 15:48:53 »
Don't think there is a chair already in a house that you can get a muppet to sit in. However there is, if I recall correctly a chair in the editor that you can just tell a guy to get in with a waypoint or have him sit in using the;

This moveindriver chair

command.
I don't know which chair it is tho. Plus you need to have downloaded the editor addon form the addon depot first.
The great Fin mod has one too.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Make a unit sit on a chair
« Reply #3 on: 17 Feb 2004, 16:18:56 »
unit switchMove "onChair"... (or playMove, can't remember :P)

There's only one chair that the AI is willing to sit on politely... Maybe it was chair x... The others usually need the setPos tinkering and even that won't usually help...

Is that moveInDriver even actually possible...  ???

EDIT:
Quote
Don't think there is a chair already in a house that you can get a muppet to sit in.
Actually there is... At least I've dunnit succesfully in the (CWC age) restaurant building...
« Last Edit: 17 Feb 2004, 16:20:38 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Loup-Garou

  • Guest
Re:Make a unit sit on a chair
« Reply #4 on: 17 Feb 2004, 21:58:45 »
The house I mentioned is a white one, in Trosky (Novoga). I've already fit up it with a computer, a phone, a steel bed and a radio (did I hear : space problem ?)  ;D
« Last Edit: 17 Feb 2004, 21:59:07 by Loup-Garou »

Loup-Garou

  • Guest
Re:Make a unit sit on a chair
« Reply #5 on: 17 Feb 2004, 22:53:48 »
OOOpppppssss.... . Nothing work :help:

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Make a unit sit on a chair
« Reply #6 on: 18 Feb 2004, 01:05:23 »
HateR_Kint's solution does work.   Try harder.

You need to check the syntax of the command and ensure that you have the correct chair.    You may need to adjust the positions of the chair and the loon a little.
« Last Edit: 18 Feb 2004, 01:06:00 by macguba »
Plenty of reviewed ArmA missions for you to play

Loup-Garou

  • Guest
Re:Make a unit sit on a chair
« Reply #7 on: 19 Feb 2004, 14:52:23 »
I tried all of the chairs, playMove and switchMove.... but that @x!!   :gunman: civilian just turns his head !!!!
« Last Edit: 19 Feb 2004, 14:52:56 by Loup-Garou »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Make a unit sit on a chair
« Reply #8 on: 19 Feb 2004, 17:58:46 »
Yes it does work... I tried it myself just now...

Let me guess: You tried to put the command in the units init field?
Now, don't do that... It will not work in 9.9999989 times out of 9.999999...

Use a trigger or a script instead...
Use it as unit switchMove "onChair" and with Chair X which seems to be the only one that seems to accept to be sitted on...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Kaliyuga

  • Guest
Re:Make a unit sit on a chair
« Reply #9 on: 19 Feb 2004, 20:07:04 »
  That moveindriver thing is a good idea..  ;D

but it's only the chairs for the FDF mod that have it AFAIK...

 I could probably make a simple little wooden desk chair that has the same properties though..  

think it would get used much?

:cheers:

Loup-Garou

  • Guest
Re:Make a unit sit on a chair
« Reply #10 on: 20 Feb 2004, 22:08:04 »
Thanks, HateR_Kint  ;) . You're right ! I used a trigger and it worked !

Example : unit : civilian, name : Civ1. Linked (F2) with a trigger: on Activation : Civ1 switchMove "OnChair"

Note : as you said, it works fine with ChairX ; but it might be working with other chair types, because seems the animation works even without a chair (lol). Perhaps with some trick like getPost (ajust the chair's height...).
Anyway, topic is SOLVED ! Thanks again  :thumbsup: !
« Last Edit: 20 Feb 2004, 22:09:30 by Loup-Garou »