OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 20 Aug 2002, 18:51:17
-
How do I make a unit sit on a chair?
-
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
-
Edit
Already answered, so nevermind me.
-
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.
-
unitName switchMove "OnChair"
Works for me.
-
Nothing, it does NOT work for me. The guy doesn't sit on the chair well.
-
Post your mission here, and I will take a look at it.
-
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
-
Okay, but first you need to tell me what version of OFP you have. Do you have Resistance?
-
Hve you set the unit's behaviour to "SAFE" first?
-
omg, do I feel stupid. I didn't even think of that.
Better yet, set him to "CARELESS".
-
Yeah, I have resistance.
And yes, I have set the behaviour to safe. And i tried careless too
-
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 ;)
-
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?
-
With the chair x it worked a little bit better, but it aint enough
-
[This Attachment has been Deleted By Routine Maintenance]
-
Good job, man. At ease. And thanks ;)
-
I am back!!!! ;D Other question. Now that my heroe sits on a chair, how can I make him stand up?
-
unitname switchMove "FXStandFromTable"
-
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.
-
try using playmove instead of swithcmove, if it doesn't work just use this
unitname switchMove ""
-
they didn't work
-
its ok for me, you'll have to do it through a script and not a waypoint though.
-
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)