OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite 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?
-
Have you tried using the "Chair x" ?
I heard that's the only one that works with a sitdown ani.
O Neil ;)
-
I am using chair X
-
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.
-
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
-
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
-
:)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.
-
:'(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?
-
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
-
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?>
-
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.
-
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
-
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.
-
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"
====================
-
:) :) :) :)big thmax to Tomb boy ;D ;D ;D