OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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)? :-\
-
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.
-
AAARRGGG !!! I feel unlucky today :o, but thank for your answer, MacGuba :cheers:
-
If I recall correctly:
soldiername switchmove "StandToSitDown"
But I'm not sure the soldier will remain sitting for long.
Planck
-
YEH ! Thank you, Planck. You're really a cool guy :cheers: Go us !
-
I found another solution (the other doesn't work) : Unit---> Initialization : playmove "EffectStandSitDown" . Note that I didn't try it yet. ::)
-
It works.
-
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