OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 20 Aug 2002, 18:51:17

Title: Common question
Post by: seanver on 20 Aug 2002, 18:51:17
How do I make a unit sit on a chair?
Title: Re:Common question
Post by: T.S.C.Plage on 20 Aug 2002, 19:52:35
The unit behaviour must be set "careless" (waypoint or initline).

In the next waypoint (the chair) write this in "OnActivation":

this SwitchMove "Commander"
or
this SwitchMove "FXStandUnivTable" (that's what I prefere)
or
this SwitchMove "OnChair"

Of course you can also use this in a script but I think it doesn't works with triggers.

Hope this will help...

Greetz
Plage  
Title: Re:Common question
Post by: KTottE on 20 Aug 2002, 19:54:08
Edit

Already answered, so nevermind me.
Title: Re:Common question
Post by: seanver on 21 Aug 2002, 14:21:34
That does not work well, the guy doesn't sit on the chair. He sits either on the right, or on the left or even about 1 meter over the chair.
Title: Re:Common question
Post by: KTottE on 21 Aug 2002, 14:24:28
unitName switchMove "OnChair"

Works for me.
Title: Re:Common question
Post by: seanver on 21 Aug 2002, 14:34:38
Nothing, it does NOT work for me. The guy doesn't sit on the chair well.
Title: Re:Common question
Post by: KTottE on 21 Aug 2002, 14:53:43
Post your mission here, and I will take a look at it.
Title: Re:Common question
Post by: seanver on 21 Aug 2002, 15:06:30
I have nothing done, I've just started that mission. So if you want, post  a mission where the guy sits well to see what I'm doing wrong
Title: Re:Common question
Post by: KTottE on 21 Aug 2002, 15:10:56
Okay, but first you need to tell me what version of OFP you have. Do you have Resistance?
Title: Re:Common question
Post by: Sefe on 21 Aug 2002, 15:11:18
Hve you set the unit's behaviour to "SAFE" first?
Title: Re:Common question
Post by: KTottE on 21 Aug 2002, 15:12:07
omg, do I feel stupid. I didn't even think of that.
Better yet, set him to "CARELESS".
Title: Re:Common question
Post by: seanver on 21 Aug 2002, 15:14:49
Yeah, I have resistance.
And yes, I have set the behaviour to safe. And i tried careless too
Title: Re:Common question
Post by: Navy_Seals on 21 Aug 2002, 16:12:02
Hey guys, guys  :D what all resistance talk is about. Ain't u forgeting something, eh?!
First of all u should use our famous Chair X so the guy will be able to normaly sit down and to make the guy sit use unitname SwitchMove "FXStandUnivTable" Hope that helps, cheers ;)
Title: Re:Common question
Post by: KTottE on 21 Aug 2002, 16:15:44
I am trying it with Chair X right now, not working. I think it's related to Resistance.

Edit:

It wasn't.
I've tried it in 1.46 as well. Damnit, why isn't this working?
Title: Re:Common question
Post by: seanver on 21 Aug 2002, 16:42:00
With the chair x it worked a little bit better, but it aint enough
Title: Re:Common question
Post by: Navy_Seals on 21 Aug 2002, 17:23:22


[This Attachment has been Deleted By Routine Maintenance]
Title: Re:Common question
Post by: seanver on 21 Aug 2002, 17:28:35
Good job, man. At ease. And thanks  ;)
Title: Re:Common question
Post by: seanver on 22 Aug 2002, 01:28:48
I am back!!!!  ;D Other question. Now that my heroe sits on a chair, how can I make him stand up?
Title: Re:Common question
Post by: Black_Feather on 22 Aug 2002, 01:52:42
unitname switchMove "FXStandFromTable"
Title: Re:Common question
Post by: seanver on 22 Aug 2002, 20:26:44
Hi again. Other problem with this. Once the guy stands up, he doesn't move. I've tried waypoints as well as "domove" commands to move to a gamelogic.
Title: Re:Common question
Post by: Black_Feather on 22 Aug 2002, 20:49:53
try using playmove instead of swithcmove, if it doesn't work just use this

unitname switchMove ""
Title: Re:Common question
Post by: seanver on 22 Aug 2002, 20:55:01
they didn't work
Title: Re:Common question
Post by: Black_Feather on 22 Aug 2002, 21:00:47
its ok for me, you'll have to do it through a script and not a waypoint though.
Title: Re:Common question
Post by: seanver on 22 Aug 2002, 21:09:26
I've solved it: ive created a "clone" of the guy so I teleport the guy who is sat on the chair and put the clone standing up instead. I guess I'm not going to have problems with this so topic solved  8)