OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pertti49 on 28 Apr 2004, 15:33:48

Title: how to take a knee?
Post by: pertti49 on 28 Apr 2004, 15:33:48
command anim for soldier to knee and stay the position?
Title: Re:how to take a knee?
Post by: h- on 28 Apr 2004, 16:24:24
Perhaps a combination of the following (not in the init-field though... Find another way...):

doStop unit
unit setBehaviour "combat"
unit setCombatMode "yellow" (don't remember if this is needed...)
unit setUnitPos "up"
unit switchMove "crouch"

AI may stay on knee...
If that's for cut scene, you can use the behaviour as "careless" which would probably be better...

As always, I don't give any guarantees  :P
Title: Re:how to take a knee?
Post by: Xaio04 on 29 Apr 2004, 13:42:32
oh thanks man I need that aswell...

do you know:

how to do that in " Prone " or lying down?? I cant seem to get it.

Thanks mate.
Title: Re:how to take a knee?
Post by: Djoker on 29 Apr 2004, 15:39:05
unit setUnitPos "down"
Title: Re:how to take a knee?
Post by: Xaio04 on 30 Apr 2004, 11:36:11
AI can only face the direction of " 0 " anyone know the solution?

Thanks.
Title: Re:how to take a knee?
Post by: h- on 30 Apr 2004, 19:36:50
It's a bug in 'doStop'... (afaik)
It makes the unit face North...
Title: Re:how to take a knee?
Post by: Xaio04 on 01 May 2004, 08:33:14
Lol, yea I just edited it abit getting rid of that and its fine now. The only crap thing is when using that crouch or standing, they dont shoot when infront of an object, they do but, not us much as when there's not an object there.

 :'(

Xaio.