OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Soldier8Boy on 29 Aug 2002, 21:23:10

Title: Getting guys to sit on ground
Post by: Soldier8Boy on 29 Aug 2002, 21:23:10
Whenever I use the switchmove and an animation the guy just flickers quickly. It seems as if he did the animation at super sonic speed... can anyone help pls?
Title: Re:Getting guys to sit on ground
Post by: Messiah on 29 Aug 2002, 21:25:55
switchmove moves the unit to that posistion instantly (well close enough) some animations are switchmove only - but your command isnt

use 'playmove' instead

:thumbsup:
Title: Re:Getting guys to sit on ground
Post by: T.S.C.Plage on 30 Aug 2002, 05:43:06
Maybe you've used a wrong command?

I've found this three but have only tested the first.

EffectStandSitDownVer1
EffectStandSitDownVer2
EffectStandSitDownStill


Greetz
Plage
Title: Re:Getting guys to sit on ground
Post by: Hunted on 30 Aug 2002, 09:12:07
Try this:

this setBehaviour "safe"; this switchMove "EffectStandSitDown"

or replace the switchMove with playMove

I noticed that the ones with ending 'Ver1', 'Ver2', 'Still' only worked on versions on pre-1.75v.

Hope this helped :joystick:  :beat:

Hunted...
Title: Re:Getting guys to sit on ground
Post by: Messiah on 30 Aug 2002, 12:27:31
as ive said - on the pre 1.46 animations - switchmove instantly forces the unit to the animation.

If you use a command that can use 'playmove' then they will do a slow controlled movement to the animation - so to make him sit down use:

unitname playmove "efffectstandsitdown"

animations after 1.75 (the new animations) all use swithmove.