Home   Help Search Login Register  

Author Topic: guy wont sit in chair  (Read 872 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
guy wont sit in chair
« on: 17 May 2003, 05:55:20 »
After a soldier picks up a ringing phone, he just sits in a random position.  He is supposed to sit in a chair, and not do the animation in any other position but the chair.

 ???What is the problem? how am I supposed to set this up properly?

O Neil

  • Guest
Re:guy wont sit in chair
« Reply #1 on: 17 May 2003, 07:10:15 »
Have you tried using the "Chair x" ?

I heard that's the only one that works with a sitdown ani.

O Neil ;)

gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #2 on: 17 May 2003, 07:22:34 »
I am using chair X

SharkDog

  • Guest
Re:guy wont sit in chair
« Reply #3 on: 17 May 2003, 13:13:43 »
This had been asked so many times, well here goes.

It doesn't care wich chair you use.
Just put the waypoint with the command on the unit.

for example.

Create a unit.
Put a waypoint on himself.
Put in the activation field of the waypoint this:  this switchmove "OnChair"
Then he should sit down.

gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #4 on: 17 May 2003, 17:43:10 »
The waypoint wont work in this situation. The guy uses the animation "FXStandToTelHand" and the chair repells him or very unlikely, he will sit halfway on the chair.  Better yet, he performs this animation in different places each time it runs (the script).

My set up:  
A script carries on a conversation.  

The phone rings.  

The guy I am talking to picks it up  ("FXStandToTelHand" animation).  This is when the problem occurs.

What could avoid the problem all together is if there is an animation where the guy could talk on the phone while he is standing up.  If one exists, what is it? If not, how will he always sit in that chair?

The script is attached.

 :) :)Thanks again



Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:guy wont sit in chair
« Reply #5 on: 17 May 2003, 22:36:53 »
tell ya what, m8  :-\ after OFP patch 1.8_something (or wuz it 1.90?), the "collision detection"was improved which basically means that what worked in the old days have become pretty dang hard to do nowadays!  ::)


However, the following codes are:

========

unit switchmove "FXStandUnivTable"
unit switchmove "FXStandFromTable"
unit switchmove "FXStandToTel"
unit switchmove "FXStandToTelHand"
Unit switchmove "FXStandToTelLoop"
unit switchmove "FXStandToTable"

=========


fiddle w/ the appropriate delays to make it look as good as Tomb in front of a mirror  8) ;D




gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #6 on: 18 May 2003, 04:34:10 »
 :)I figured out that the sitting problem comes from where you (the player) is standing.  If you are standing in a certain place, he will sit directly in the chair.  In other places, he will sit far away from the chair, and yet others, close and partway on.  The phone and chair is in a tent.  

I have the updated script (now includes a second) attached, in a zip file

 8)I am making progress, thanks for the good help.

gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #7 on: 23 May 2003, 02:08:08 »
 :'(what is the problem with the repulsive force on where the player is standing (guy will sit in the chair if standing in a certain position), other places the player is standinf he will not sit?

bmgarcangel

  • Guest
Re:guy wont sit in chair
« Reply #8 on: 23 May 2003, 02:44:54 »
i' m having the same problem.  The guy though won't sit in the chair, instead the chair's force pushes him of it.  HELP

bmgarcangel

  • Guest
Re:guy wont sit in chair
« Reply #9 on: 23 May 2003, 02:55:24 »
ok, man, here you go, this works just fine :)

But first, how do you get the phone to his hand and how do you get objects onto the table?>
« Last Edit: 23 May 2003, 03:00:30 by BMGARCANGEL <Brendan> »

gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #10 on: 23 May 2003, 03:00:21 »
yes I managed to get around the chair repulsion by messing and playing around.  The dude has to do the sit animation in front of the chair to sit in it.  The chair has to be the (Chair X) object to work, even this repells if the sit animation is not done correctly.  If the unit is in the wrong position, the chair will repell him due to collision reasons in a patch.    

The trouble I am having is different, the player, which is a soldier, repells the soldier doing the sitting into a position where he does not sit on the chair.  To get around my problem, I could turn the conversation into a cutscene, which could make more sense, in a conversation situation.  

bmgarcangel

  • Guest
Re:guy wont sit in chair
« Reply #11 on: 23 May 2003, 03:02:40 »
yes, now answer this please:
how do you get the phone to his hand and how do you get objects onto the table?>



"We are human beings.  All of us.  As long as we live, as long as we walk around on earth, there will always be war.  War in different types.  War is fought by people at home and people with guns a thousand miles away."
QUOTE FROM GENERAL PATTON, WW2 Commander of the 3rd Army
« Last Edit: 23 May 2003, 03:04:36 by BMGARCANGEL <Brendan> »

gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #12 on: 23 May 2003, 03:17:04 »
for the phone:
you have to set the phone's z-axis position for around one meter off the ground, x and y, the same position where the table is.  You have to use the setpos command in the initialazation field for the phone, not sure of the syntax, off the top of my head.

for the phone in hand:
unit addmagazine "phone"
if he has a binocular, romove it, or he will use the binoculars for a phone :D, it's silly but true.    

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:guy wont sit in chair
« Reply #13 on: 23 May 2003, 09:40:48 »
If it's to any help, me found the following lil' gem in the locker back homie  :)


===========================

 8) Script codes (with the exact delays) :


unit switchmove "FXStandUnivTable"
~3
unit switchmove "FXStandFromTable"
~2
unit switchmove "FXStandToTel"
~0.5
unit switchmove "FXStandToTelHand"
~4.8
Unit switchmove "FXStandToTelLoop"
 
====================


« Last Edit: 23 May 2003, 09:41:20 by Tomb »

gadolinite

  • Guest
Re:guy wont sit in chair
« Reply #14 on: 24 May 2003, 00:46:21 »
 :) :) :) :)big thmax to Tomb boy ;D ;D ;D