OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Loup-Garou on 09 Nov 2003, 19:20:18

Title: Make a unit sit down
Post by: Loup-Garou on 09 Nov 2003, 19:20:18
How can I make a unit sit down in the editor (init field of the unit)? :-\
Title: Re:Make a unit sit down
Post by: macguba on 09 Nov 2003, 19:25:26
You need the command playmove or switchmove and the appropriate animation.    Learn how to use the commands from the command reference:   there is a complete listing of the animations in the Ed Depot - tutorials - references.

Unfortunately some (all?) playmove commands don't work in the init field of the unit.    Give him a waypoint at his starting position and put the command in there.  Alternatively use a script.
Title: Re:Make a unit sit down
Post by: Loup-Garou on 09 Nov 2003, 19:32:11
AAARRGGG !!! I feel unlucky today  :o, but thank for your answer, MacGuba :cheers:
Title: Re:Make a unit sit down
Post by: Planck on 09 Nov 2003, 19:46:05
If I recall correctly:

soldiername switchmove "StandToSitDown"

But I'm not sure the soldier will remain sitting for long.


Planck
Title: Re:Make a unit sit down
Post by: Loup-Garou on 09 Nov 2003, 19:53:55
YEH ! Thank you, Planck. You're really a cool guy  :cheers: Go us !
Title: Re:Make a unit sit down
Post by: Loup-Garou on 05 Dec 2003, 12:31:30
I found another solution (the other doesn't work) : Unit---> Initialization : playmove "EffectStandSitDown" . Note that I didn't try it yet.  ::)
Title: Re:Make a unit sit down
Post by: Pipski on 05 Dec 2003, 15:10:09
It works.
Title: Re:Make a unit sit down
Post by: Loup-Garou on 17 Feb 2004, 14:57:29
In the init field : this setBehaviour "safe";this switchMove "effectstandsitdown"

Note : it seems to work better when military units aren't in a squad. The civilians stand up after a few seconds, but I read that the solution seems to be this one : give to the unit a "HOLD" waypoint an put the code here.   ;D